fix doubel free

This commit is contained in:
virusdefender 2018-05-14 07:11:44 +08:00
parent ac23ccdabb
commit d4e15b7c35

View File

@ -8,8 +8,12 @@
{\
LOG_FATAL(log_fp, "Error: System errno: %s; Internal errno: "#error_code, strerror(errno)); \
close_file(input_file); \
close_file(output_file); \
close_file(error_file); \
if (output_file == error_file) { \
close_file(output_file); \
} else { \
close_file(output_file); \
close_file(error_file); \
} \
raise(SIGUSR1); \
exit(EXIT_FAILURE); \
}