* src/main.c (main): Invoke scanner_free.

This commit is contained in:
Akim Demaille
2002-06-14 17:37:12 +00:00
parent f958596b44
commit 4515534cd2
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2002-06-14 Akim Demaille <akim@epita.fr>
* src/main.c (main): Invoke scanner_free.
2002-06-14 Akim Demaille <akim@epita.fr> 2002-06-14 Akim Demaille <akim@epita.fr>
* src/output.c (m4_invoke): Extracted from... * src/output.c (m4_invoke): Extracted from...

View File

@@ -110,6 +110,10 @@ main (int argc, char *argv[])
free_nullable (); free_nullable ();
free_derives (); free_derives ();
grammar_free (); grammar_free ();
/* The scanner memory cannot be released right after parsing, as it
contains things such as user actions, prologue, epilogue etc. */
scanner_free ();
muscle_free (); muscle_free ();
/* If using alloca.c, flush the alloca'ed memory for the benefit of /* If using alloca.c, flush the alloca'ed memory for the benefit of
people running Bison as a library in IDEs. */ people running Bison as a library in IDEs. */