mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
* src/output.c (output): Don't free the grammar.
* src/reader.c (grammar_free): New. * src/main.c (main): Call it and don't free symtab here.
This commit is contained in:
@@ -1084,7 +1084,6 @@ output (void)
|
||||
output_token_translations ();
|
||||
output_gram ();
|
||||
|
||||
XFREE (ritem);
|
||||
if (semantic_parser)
|
||||
output_stos ();
|
||||
output_rule_data ();
|
||||
@@ -1095,7 +1094,6 @@ output (void)
|
||||
/* Process the selected skeleton file. */
|
||||
output_skeleton ();
|
||||
|
||||
free (rules + 1);
|
||||
obstack_free (&muscle_obstack, NULL);
|
||||
obstack_free (&format_obstack, NULL);
|
||||
obstack_free (&action_obstack, NULL);
|
||||
|
||||
Reference in New Issue
Block a user