hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.1k stars 360 forks source link

Fix memory leak when parsing invalid syntax #155

Closed thomastrapp closed 4 years ago

thomastrapp commented 4 years ago

Add a destructor for TOK_STRING that is called when a TOK_STRING is discarded during error recovery. Closes #142.

lib/grammar.c was regenerated using "bison (GNU Bison) 3.0.4".

hyperrealm commented 4 years ago

Thank you!