about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-12 21:43:53 +0100
committerhexcoder- <heiko@hexco.de>2020-03-12 21:43:53 +0100
commit8adc2648f8a652725fe3c8f22fdc1c13fa205e16 (patch)
tree9a8f848aefbd0b00e941bb562f79951ba224ac94
parent0c45918d549301e32756af4a81dc3a0e31bbd4d7 (diff)
downloadafl++-8adc2648f8a652725fe3c8f22fdc1c13fa205e16.tar.gz
fix afl-common.c for *BSD
-rw-r--r--src/afl-common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/afl-common.c b/src/afl-common.c
index 76a538c6..285b221a 100644
--- a/src/afl-common.c
+++ b/src/afl-common.c
@@ -50,7 +50,6 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) {
   if ((buf = (char *)malloc((size_t)size)) != NULL) {
 
     cwd = getcwd(buf, (size_t)size);                    /* portable version */
-    ck_free(buf);
 
   } else {
 
@@ -104,7 +103,7 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) {
 
   }
 
-  ck_free(cwd);                                              /* not tracked */
+  free(cwd);                                              /* not tracked!!!! */
 
 }