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")
MODIFY
src/afl-fuzz-init.c
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) {

MODIFY
src/afl-fuzz.c
src/afl-fuzz.c
@@ -1173,7 +1173,7 @@ stop_fuzzing:
ck_free(afl->fsrv.target_path);
ck_free(afl->fsrv.out_file);
ck_free(afl->sync_id);
- ck_free(afl);
+ free(afl); /* not tracked */
argv_cpy_free(argv);

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")