mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-28 16:01:41 +00:00
fix doubel free
This commit is contained in:
parent
ac23ccdabb
commit
d4e15b7c35
@ -8,8 +8,12 @@
|
|||||||
{\
|
{\
|
||||||
LOG_FATAL(log_fp, "Error: System errno: %s; Internal errno: "#error_code, strerror(errno)); \
|
LOG_FATAL(log_fp, "Error: System errno: %s; Internal errno: "#error_code, strerror(errno)); \
|
||||||
close_file(input_file); \
|
close_file(input_file); \
|
||||||
close_file(output_file); \
|
if (output_file == error_file) { \
|
||||||
close_file(error_file); \
|
close_file(output_file); \
|
||||||
|
} else { \
|
||||||
|
close_file(output_file); \
|
||||||
|
close_file(error_file); \
|
||||||
|
} \
|
||||||
raise(SIGUSR1); \
|
raise(SIGUSR1); \
|
||||||
exit(EXIT_FAILURE); \
|
exit(EXIT_FAILURE); \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user