diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-04-08 17:47:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-08 17:47:22 -0700 |
commit | cea5c956486b8acae4bf5a23f0148d6b85d9acd3 (patch) | |
tree | 56fa09708b0fa235e8837cd1635fcfd33f3b2259 /tests/012/ashwin.expected | |
parent | fb07c84eeaeda96eac369ff763dd9c1c5b5ee0fb (diff) | |
download | txr-cea5c956486b8acae4bf5a23f0148d6b85d9acd3.tar.gz txr-cea5c956486b8acae4bf5a23f0148d6b85d9acd3.tar.bz2 txr-cea5c956486b8acae4bf5a23f0148d6b85d9acd3.zip |
parser: fix few memory leaks in error recovery.
* parser.y (var, o_var): In a few error productions in which
we have a SYMTOK item, we should free the lexeme.
This doesn't solve all leaks: any time we have a parser
stack containing SYMTOK or TEXT items that belong to rules
that have not yet been reduced, and the parse job is aborted
due to errors, we leak those.
Diffstat (limited to 'tests/012/ashwin.expected')
0 files changed, 0 insertions, 0 deletions