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:
aet 2002-11-12 11:35:59 +00:00
parent de9e4916ff
commit 705b498a2a
1 changed files with 8 additions and 3 deletions

View File

@ -59,9 +59,14 @@ int scconf_lex_parse(scconf_parser *p, const char *filename)
return 0;
yylex();
#if 0
yy_delete_buffer(yy_current_buffer);
yy_current_buffer = NULL;
#if 1
/* For non-reentrant C scanner only. */
if (yy_current_buffer) {
yy_delete_buffer(yy_current_buffer);
yy_current_buffer = NULL;
yy_init = 1;
yy_start = 0;
}
#endif
fclose(yyin);
return 1;