mem leak in lex for flex 2.6
This commit is contained in:
parent
31c45e5c62
commit
7880b5d498
4 changed files with 24 additions and 29 deletions
|
|
@ -131,11 +131,7 @@ int
|
|||
json_scan_exit(struct clicon_json_yacc_arg *jy)
|
||||
{
|
||||
yy_delete_buffer(jy->jy_lexbuf);
|
||||
#if defined(YY_FLEX_SUBMINOR_VERSION) && YY_FLEX_SUBMINOR_VERSION >= 9
|
||||
clixon_json_parselex_destroy(); /* modern */
|
||||
#else
|
||||
yy_init = 1; /* This does not quite free all buffers */
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -141,11 +141,7 @@ int
|
|||
clixon_xml_parsel_exit(struct xml_parse_yacc_arg *ya)
|
||||
{
|
||||
yy_delete_buffer(ya->ya_lexbuf);
|
||||
#if defined(YY_FLEX_SUBMINOR_VERSION) && YY_FLEX_SUBMINOR_VERSION >= 9
|
||||
clixon_xml_parselex_destroy(); /* modern */
|
||||
#else
|
||||
yy_init = 1; /* This does not quite free all buffers */
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -248,11 +248,7 @@ int
|
|||
yang_scan_exit(struct clicon_yang_yacc_arg *yy)
|
||||
{
|
||||
yy_delete_buffer(yy->yy_lexbuf);
|
||||
#if defined(YY_FLEX_SUBMINOR_VERSION) && YY_FLEX_SUBMINOR_VERSION >= 9
|
||||
clixon_yang_parselex_destroy(); /* modern */
|
||||
#else
|
||||
yy_init = 1; /* This does not quite free all buffers */
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue