mem leak in lex for flex 2.6

This commit is contained in:
Olof hagsand 2017-04-07 10:59:30 +02:00
parent 31c45e5c62
commit 7880b5d498
4 changed files with 24 additions and 29 deletions

View file

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