Avoid a duplicate fclose() of the sudoers file.
--HG-- branch : 1.7
This commit is contained in:
2
toke.l
2
toke.l
@@ -840,7 +840,7 @@ init_lexer()
|
|||||||
efree(pl);
|
efree(pl);
|
||||||
}
|
}
|
||||||
efree(istack[idepth].path);
|
efree(istack[idepth].path);
|
||||||
if (!istack[idepth].keepopen)
|
if (idepth && !istack[idepth].keepopen)
|
||||||
fclose(istack[idepth].bs->yy_input_file);
|
fclose(istack[idepth].bs->yy_input_file);
|
||||||
yy_delete_buffer(istack[idepth].bs);
|
yy_delete_buffer(istack[idepth].bs);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user