about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-04-10 15:06:31 +0200
committerhexcoder- <heiko@hexco.de>2020-04-10 15:06:31 +0200
commit5b977453cbff9778335eabaa5c2f808291a495ed (patch)
treed09032d314b1e2b4a6234a7bf52bae2e59d68214
parenta60e425d396379e6e3000341816d6be103514cfa (diff)
downloadafl++-5b977453cbff9778335eabaa5c2f808291a495ed.tar.gz
another mem leak fix for master/slave usage
-rw-r--r--src/afl-fuzz-state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index f3fc33ce..a8c14c31 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -349,6 +349,7 @@ void afl_state_deinit(afl_state_t *afl) {
 
   if (afl->post_deinit) afl->post_deinit(afl->post_data);
   if (afl->in_place_resume) ck_free(afl->in_dir);
+  if (afl->sync_id) ck_free(afl->out_dir);
 
   free(afl->out_buf);
   free(afl->out_scratch_buf);