From 746a2a0ed0fc3342ee4bf13697319a99ea3eb23f Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Fri, 13 Mar 2020 17:23:23 +0100 Subject: 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") --- src/afl-fuzz-init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/afl-fuzz-init.c') 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) { -- cgit 1.4.1