diff options
author | van Hauser <vh@thc.org> | 2020-10-19 11:34:57 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-10-19 11:34:57 +0200 |
commit | ac1c3b87015dd2c9b1bae0198f7925816aa63aec (patch) | |
tree | 43aacfca6123cea8fa2f4378c8aa2c189ca500dd /src/afl-showmap.c | |
parent | d8a058bf592a040256bb4b0a1ff9dcb97a8e3eda (diff) | |
download | afl++-ac1c3b87015dd2c9b1bae0198f7925816aa63aec.tar.gz |
mini improvements
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r-- | src/afl-showmap.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c index bd0d1a29..4b357254 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -209,10 +209,10 @@ static u32 write_results_to_file(afl_forkserver_t *fsrv, u8 *outfile) { if (!outfile) { FATAL("Output filename not set (Bug in AFL++?)"); } - if (cmin_mode && (fsrv->last_run_timed_out - || (!caa && child_crashed != cco))) { + if (cmin_mode && + (fsrv->last_run_timed_out || (!caa && child_crashed != cco))) { - return ret; + return ret; } @@ -298,7 +298,8 @@ static void showmap_run_target_forkserver(afl_forkserver_t *fsrv, u8 *mem, if (!quiet_mode) { SAYF(cRST "-- Program output ends --\n"); } - if (!fsrv->last_run_timed_out && !stop_soon && WIFSIGNALED(fsrv->child_status)) { + if (!fsrv->last_run_timed_out && !stop_soon && + WIFSIGNALED(fsrv->child_status)) { child_crashed = 1; @@ -1202,6 +1203,7 @@ int main(int argc, char **argv_orig, char **envp) { ret = child_crashed * 2 + fsrv->last_run_timed_out; } + if (fsrv->target_path) { ck_free(fsrv->target_path); } afl_fsrv_deinit(fsrv); |