X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5df5f6d53858c71db7654607a2830d86a9c3f6da..5372019fabc593faad353349d41dea7e79dae509:/src/gram.c?ds=sidebyside diff --git a/src/gram.c b/src/gram.c index 75546603..3fc03d0e 100644 --- a/src/gram.c +++ b/src/gram.c @@ -159,3 +159,14 @@ grammar_dump (FILE *out, const char *title) } fprintf (out, "\n\n"); } + + +void +grammar_free (void) +{ + XFREE (ritem); + free (rules + 1); + XFREE (token_translations); + /* Free the symbol table data structure. */ + symbols_free (); +}