Avoid a duplicate fclose() of the sudoers file.

--HG--
branch : 1.7
This commit is contained in:
Todd C. Miller
2010-02-09 10:43:20 -05:00
parent 01240ab71a
commit a40de29cbe

2
toke.l
View File

@@ -840,7 +840,7 @@ init_lexer()
efree(pl);
}
efree(istack[idepth].path);
if (!istack[idepth].keepopen)
if (idepth && !istack[idepth].keepopen)
fclose(istack[idepth].bs->yy_input_file);
yy_delete_buffer(istack[idepth].bs);
}