diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/preproc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/preproc.c b/src/preproc.c index 183af3a..08b963a 100644 --- a/src/preproc.c +++ b/src/preproc.c @@ -653,9 +653,19 @@ void grecs_preproc_done() { grecs_symtab_free(incl_sources); + incl_sources = NULL; + grecs_free(linebuf); + linebuf = NULL; + bufsize = 0; + grecs_free(putback_buffer); + putback_buffer = NULL; + putback_size = putback_max = 0; + free(linebufbase); /* Allocated via standard malloc/realloc */ + linebufbase = NULL; + linebufsize = 0; } int |