about summary refs log tree commit diff
path: root/src/afl-fuzz-init.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-13 17:23:23 +0100
committerhexcoder- <heiko@hexco.de>2020-03-13 17:23:23 +0100
commit746a2a0ed0fc3342ee4bf13697319a99ea3eb23f (patch)
treebfeaeaa006d57ddb7524dcded9735c212c8fa26e /src/afl-fuzz-init.c
parentd2787519e33b339f4f2b03bdba32719a60a663a3 (diff)
downloadafl++-746a2a0ed0fc3342ee4bf13697319a99ea3eb23f.tar.gz
afl-fuzz-init.c, afl-fuzz.c: fix more wrong free() calls (found with
ASAN_BUILD=1 CFLAGS="-D_WANT_ORIGINAL_AFL_ALLOC -DDEBUG_BUILD")
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r--src/afl-fuzz-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 1db5c0ef..c5ee2f80 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -373,7 +373,7 @@ void read_testcases(afl_state_t *afl) {
 
     u8 passed_det = 0;
 
-    ck_free(nl[i]);                                          /* not tracked */
+    free(nl[i]);                                             /* not tracked */
 
     if (lstat(fn2, &st) || access(fn2, R_OK))
       PFATAL("Unable to access '%s'", fn2);
@@ -404,7 +404,7 @@ void read_testcases(afl_state_t *afl) {
 
   }
 
-  ck_free(nl);                                               /* not tracked */
+  free(nl);                                                  /* not tracked */
 
   if (!afl->queued_paths) {