diff options
author | hexcoder- <heiko@hexco.de> | 2020-11-13 00:44:08 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-11-13 00:44:08 +0100 |
commit | 54a312a5fe7d83fcee8b420868bc918622e9b3a6 (patch) | |
tree | a3d2926e2152394db28969be99d021aaa4c67e81 /src | |
parent | 4a4c14c9a926a75a52d3775098211cf3a89e0a7d (diff) | |
download | afl++-54a312a5fe7d83fcee8b420868bc918622e9b3a6.tar.gz |
more small fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-common.c | 2 | ||||
-rw-r--r-- | src/afl-fuzz-python.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/afl-common.c b/src/afl-common.c index 19c9419b..8cf1a444 100644 --- a/src/afl-common.c +++ b/src/afl-common.c @@ -342,7 +342,7 @@ u8 *find_binary(u8 *fname) { if (stat(target_path, &st) || !S_ISREG(st.st_mode) || !(st.st_mode & 0111) || st.st_size < 4) { - free(target_path); + ck_free(target_path); FATAL("Program '%s' not found or not executable", fname); } diff --git a/src/afl-fuzz-python.c b/src/afl-fuzz-python.c index fe16bc46..596b733e 100644 --- a/src/afl-fuzz-python.c +++ b/src/afl-fuzz-python.c @@ -214,6 +214,7 @@ static py_mutator_t *init_py_module(afl_state_t *afl, u8 *module_name) { PyErr_Print(); fprintf(stderr, "Failed to load \"%s\"\n", module_name); + free(py); return NULL; } |