diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-09 21:41:44 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-09 21:41:44 -0500 |
commit | 4542f7a7449b4a6c8273ae15d6e854ead0dfe13a (patch) | |
tree | cf144f609a67bd3dc73c0dd30332e592f786f1e2 /dimension/grammar.epilogue | |
parent | 7d3a45468b07356d6ca2863b59163b165a83a0f0 (diff) | |
download | dimension-4542f7a7449b4a6c8273ae15d6e854ead0dfe13a.tar.xz |
Don't leak memory on parse failures from within buffers.
Diffstat (limited to 'dimension/grammar.epilogue')
-rw-r--r-- | dimension/grammar.epilogue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dimension/grammar.epilogue b/dimension/grammar.epilogue index ecb910a..6ea4e28 100644 --- a/dimension/grammar.epilogue +++ b/dimension/grammar.epilogue @@ -43,6 +43,7 @@ dmnsn_parse(FILE *file, dmnsn_symbol_table *symtable) astree = NULL; } + dmnsn_yylex_cleanup(scanner); dmnsn_yylex_destroy(scanner); return astree; } @@ -73,6 +74,7 @@ dmnsn_parse_string(const char *str, dmnsn_symbol_table *symtable) astree = NULL; } + dmnsn_yylex_cleanup(scanner); dmnsn_yylex_destroy(scanner); return astree; } |