diff --git a/compiler-init/pawncc.c b/compiler-init/pawncc.c index 53ba7067..d7c40653 100644 --- a/compiler-init/pawncc.c +++ b/compiler-init/pawncc.c @@ -495,6 +495,9 @@ write_error: unlink(bin_file->name); fclose(fp); + memfile_destroy(bin_file); + bin_file = NULL; + return 1; } diff --git a/compiler-init/sc1.c b/compiler-init/sc1.c index 8a8f07d0..27ce05dc 100644 --- a/compiler-init/sc1.c +++ b/compiler-init/sc1.c @@ -135,7 +135,7 @@ static int *readwhile(void); static void inst_datetime_defines(void); static int norun = 0; /* the compiler never ran */ -static int autozero = 0; /* if 1 will zero out the variable, if 0 omit the zeroing */ +static int autozero = 1; /* if 1 will zero out the variable, if 0 omit the zeroing */ static int lastst = 0; /* last executed statement type */ static int nestlevel = 0; /* number of active (open) compound statements */ static int rettype = 0; /* the type that a "return" expression should have */