mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 13:58:05 +00:00
Avoid calling fclose(NULL) in the error path when we cannot open an
I/O log file.
This commit is contained in:
parent
0c94a95ef3
commit
37d70a999c
@ -884,6 +884,7 @@ parse_logfile(char *logfile)
|
||||
debug_return_ptr(li);
|
||||
|
||||
bad:
|
||||
if (fp != NULL)
|
||||
fclose(fp);
|
||||
efree(buf);
|
||||
free_log_info(li);
|
||||
|
Loading…
x
Reference in New Issue
Block a user