From: Michael Stapelberg Date: Sun, 31 Jul 2011 15:50:54 +0000 (+0200) Subject: Bugfix: cfgparse: correctly free parser/lexer X-Git-Tag: 4.0~14^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ee83df9684070bc270acbeddd58e35beb1423ced;p=i3%2Fi3 Bugfix: cfgparse: correctly free parser/lexer --- diff --git a/src/cfgparse.y b/src/cfgparse.y index dac63b95..6fa88279 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -19,6 +19,7 @@ static Match current_match; typedef struct yy_buffer_state *YY_BUFFER_STATE; extern int yylex(struct context *context); extern int yyparse(void); +extern int yylex_destroy(void); extern FILE *yyin; YY_BUFFER_STATE yy_scan_string(const char *); @@ -467,6 +468,7 @@ void parse_file(const char *f) { start_configerror_nagbar(f); } + yylex_destroy(); FREE(context->line_copy); free(context); free(new);