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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue