Bugfix: cfgparse: correctly free parser/lexer

This commit is contained in:
Michael Stapelberg 2011-07-31 17:50:54 +02:00
parent 088681c781
commit ee83df9684
1 changed files with 2 additions and 0 deletions

View File

@ -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);