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")
This commit is contained in:
hexcoder-
2020-03-13 17:23:23 +01:00
parent d2787519e3
commit 746a2a0ed0
2 changed files with 3 additions and 3 deletions

View File

@ -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) {