Free yy_current_buffer since lex doesn't do it, take 2.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@714 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
de9e4916ff
commit
705b498a2a
|
@ -59,9 +59,14 @@ int scconf_lex_parse(scconf_parser *p, const char *filename)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
yylex();
|
yylex();
|
||||||
#if 0
|
#if 1
|
||||||
|
/* For non-reentrant C scanner only. */
|
||||||
|
if (yy_current_buffer) {
|
||||||
yy_delete_buffer(yy_current_buffer);
|
yy_delete_buffer(yy_current_buffer);
|
||||||
yy_current_buffer = NULL;
|
yy_current_buffer = NULL;
|
||||||
|
yy_init = 1;
|
||||||
|
yy_start = 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
fclose(yyin);
|
fclose(yyin);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue