fix two mem leaks detected by cppcheck
MODIFY
custom_mutators/honggfuzz/honggfuzz.c
custom_mutators/honggfuzz/honggfuzz.c
@@ -37,6 +37,7 @@ my_mutator_t *afl_custom_init(afl_state_t *afl, unsigned int seed) {
if ((data->mutator_buf = malloc(MAX_FILE)) == NULL) {
+ free(data);
perror("mutator_buf alloc");
return NULL;

MODIFY
custom_mutators/libfuzzer/libfuzzer.cpp
custom_mutators/libfuzzer/libfuzzer.cpp
@@ -50,6 +50,7 @@ extern "C" my_mutator_t *afl_custom_init(afl_state_t *afl, unsigned int seed) {
if ((data->mutator_buf = (u8 *)malloc(MAX_FILE)) == NULL) {
+ free(data);
perror("mutator_buf alloc");
return NULL;

MODIFY
unicorn_mode/unicornafl
unicorn_mode/unicornafl
-Subproject commit 0bf26f6c2601e1c1c84998551ed7d50b4108fbdf
+Subproject commit c6d6647161a32bae88785a618fcd828d1711d9e6

fix two mem leaks detected by cppcheck