mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +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,7 +884,8 @@ parse_logfile(char *logfile)
|
||||
debug_return_ptr(li);
|
||||
|
||||
bad:
|
||||
fclose(fp);
|
||||
if (fp != NULL)
|
||||
fclose(fp);
|
||||
efree(buf);
|
||||
free_log_info(li);
|
||||
debug_return_ptr(NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user