Bugfix: cfgparse: correctly free parser/lexer
This commit is contained in:
parent
088681c781
commit
ee83df9684
|
@ -19,6 +19,7 @@ static Match current_match;
|
||||||
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
||||||
extern int yylex(struct context *context);
|
extern int yylex(struct context *context);
|
||||||
extern int yyparse(void);
|
extern int yyparse(void);
|
||||||
|
extern int yylex_destroy(void);
|
||||||
extern FILE *yyin;
|
extern FILE *yyin;
|
||||||
YY_BUFFER_STATE yy_scan_string(const char *);
|
YY_BUFFER_STATE yy_scan_string(const char *);
|
||||||
|
|
||||||
|
@ -467,6 +468,7 @@ void parse_file(const char *f) {
|
||||||
start_configerror_nagbar(f);
|
start_configerror_nagbar(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yylex_destroy();
|
||||||
FREE(context->line_copy);
|
FREE(context->line_copy);
|
||||||
free(context);
|
free(context);
|
||||||
free(new);
|
free(new);
|
||||||
|
|
Loading…
Reference in New Issue