From ee83df9684070bc270acbeddd58e35beb1423ced Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 31 Jul 2011 17:50:54 +0200 Subject: [PATCH] Bugfix: cfgparse: correctly free parser/lexer --- src/cfgparse.y | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5