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);
|
debug_return_ptr(li);
|
||||||
|
|
||||||
bad:
|
bad:
|
||||||
fclose(fp);
|
if (fp != NULL)
|
||||||
|
fclose(fp);
|
||||||
efree(buf);
|
efree(buf);
|
||||||
free_log_info(li);
|
free_log_info(li);
|
||||||
debug_return_ptr(NULL);
|
debug_return_ptr(NULL);
|
||||||
|
Reference in New Issue
Block a user