Memory leak.

* src/reader.c (reader): Free grammar.
This commit is contained in:
Akim Demaille
2001-12-29 14:24:35 +00:00
parent 375d580671
commit 8419d367e1
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2001-12-29 Akim Demaille <akim@epita.fr>
Memory leak.
* src/reader.c (reader): Free grammar.
2001-12-29 Akim Demaille <akim@epita.fr> 2001-12-29 Akim Demaille <akim@epita.fr>
Memory leak. Memory leak.

View File

@@ -1867,4 +1867,7 @@ reader (void)
/* Convert the grammar into the format described in gram.h. */ /* Convert the grammar into the format described in gram.h. */
packgram (); packgram ();
/* The grammar as a symbol_list is no longer needed. */
LIST_FREE (symbol_list, grammar);
} }