aboutsummaryrefslogtreecommitdiff
path: root/src/afl-fuzz-python.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-12-28 18:22:15 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-12-28 18:22:15 +0100
commit58c7a0f8fe1ae5a31a46ea215f678a3a27fc4537 (patch)
treec298e5013a0807ff0a706766b04e0b6df6279d1e /src/afl-fuzz-python.c
parent9a2f2f1ee9bb4e72367325a51cbb0e215b0f65c3 (diff)
parentc983e2c5b1c47618a4fac58154cb06020b31bbe3 (diff)
downloadafl++-58c7a0f8fe1ae5a31a46ea215f678a3a27fc4537.tar.gz
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
Diffstat (limited to 'src/afl-fuzz-python.c')
-rw-r--r--src/afl-fuzz-python.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c
index 73fcd138..6800c0c0 100644
--- a/src/afl-fuzz-python.c
+++ b/src/afl-fuzz-python.c
@@ -345,7 +345,12 @@ u8 trim_case_python(char** argv, struct queue_entry* q, u8* in_buf) {
fault = run_target(argv, exec_tmout);
++trim_execs;
- if (stop_soon || fault == FAULT_ERROR) goto abort_trimming;
+ if (stop_soon || fault == FAULT_ERROR) {
+
+ free(retbuf);
+ goto abort_trimming;
+
+ }
cksum = hash32(trace_bits, MAP_SIZE, HASH_CONST);
@@ -381,6 +386,8 @@ u8 trim_case_python(char** argv, struct queue_entry* q, u8* in_buf) {
}
+ free(retbuf);
+
/* Since this can be slow, update the screen every now and then. */
if (!(trim_exec++ % stats_update_freq)) show_stats();