Avoid calling fclose(NULL) in the error path when we cannot open an
I/O log file.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user