about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-13 20:37:39 +0100
committerhexcoder- <heiko@hexco.de>2020-03-13 20:37:39 +0100
commit08fe1e2cd7388399fc44a5217f4ca5e3fc8f84d3 (patch)
tree9830e519429b5c54fd0aac31dcf996421e2cd9b6 /src
parent746a2a0ed0fc3342ee4bf13697319a99ea3eb23f (diff)
downloadafl++-08fe1e2cd7388399fc44a5217f4ca5e3fc8f84d3.tar.gz
afl-common.c: fix my error: argv is a copy (ck_alloc based)
Now unicorn_mode works with ASAN_BUILD and _WANT_ORIGINAL_AFL_ALLOC
and DEBUG_BUILD also.
Diffstat (limited to 'src')
-rw-r--r--src/afl-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-common.c b/src/afl-common.c
index c2a4c476..1bd28ee6 100644
--- a/src/afl-common.c
+++ b/src/afl-common.c
@@ -76,7 +76,7 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) {
         } else {
           n_arg = alloc_printf("%s%s/%s%s", argv[i], cwd, prog_in, aa_loc + 2);
         } 
-        free(argv[i]);
+        ck_free(argv[i]);
         argv[i] = n_arg;
 
       }