2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 05:48:18 +00:00

Avoid calling fclose(NULL) in the error path when we cannot open an

I/O log file.
This commit is contained in:
Todd C. Miller 2012-09-17 10:53:46 -04:00
parent 0c94a95ef3
commit 37d70a999c

View File

@ -884,6 +884,7 @@ parse_logfile(char *logfile)
debug_return_ptr(li);
bad:
if (fp != NULL)
fclose(fp);
efree(buf);
free_log_info(li);