frees memory on exit

fixed bug where autozero was defaulted to nozero

--HG--
branch : dvander
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/dvander%4022
This commit is contained in:
David Anderson 2006-07-15 03:24:45 +00:00
parent 83331994ed
commit a546f9ba05
2 changed files with 4 additions and 1 deletions

View File

@ -495,6 +495,9 @@ write_error:
unlink(bin_file->name);
fclose(fp);
memfile_destroy(bin_file);
bin_file = NULL;
return 1;
}

View File

@ -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 */