fixed flex parser memory leaks in ipsec starter

This commit is contained in:
Andreas Steffen
2010-05-02 11:40:46 +02:00
parent 2724ae521e
commit 34f92dcfba
2 changed files with 10 additions and 10 deletions
+3 -1
View File
@@ -24,7 +24,8 @@
#define MAX_INCLUDE_DEPTH 20
extern void yyerror(const char *);
extern int yylex (void);
extern int yylex(void);
extern int yylex_destroy(void);
static struct {
int stack_ptr;
@@ -68,6 +69,7 @@ void _parser_y_fini (void)
fclose(__parser_y_private.file[i]);
}
memset(&__parser_y_private, 0, sizeof(__parser_y_private));
yylex_destroy();
}
int _parser_y_include (const char *filename)