aboutsummaryrefslogtreecommitdiff
path: root/custom_mutators
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-11-12 21:51:44 +0100
committerhexcoder- <heiko@hexco.de>2020-11-12 21:51:44 +0100
commit35fd6847fe99c2f7bbec247c71b44babcdcab2b8 (patch)
tree149e4fe1a29d0417e72e7ee59a60322d45796168 /custom_mutators
parentffe41e6fcec3e6228770c8fe11ec67b8cfb4878c (diff)
downloadAFLplusplus-35fd6847fe99c2f7bbec247c71b44babcdcab2b8.tar.gz
another two mem leaks
Diffstat (limited to 'custom_mutators')
-rw-r--r--custom_mutators/radamsa/radamsa-mutator.c1
-rw-r--r--custom_mutators/symcc/symcc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/custom_mutators/radamsa/radamsa-mutator.c b/custom_mutators/radamsa/radamsa-mutator.c
index 82d28001..624ace3d 100644
--- a/custom_mutators/radamsa/radamsa-mutator.c
+++ b/custom_mutators/radamsa/radamsa-mutator.c
@@ -33,6 +33,7 @@ my_mutator_t *afl_custom_init(afl_t *afl, unsigned int seed) {
if ((data->mutator_buf = malloc(MAX_FILE)) == NULL) {
+ free(data);
perror("mutator_buf alloc");
return NULL;
diff --git a/custom_mutators/symcc/symcc.c b/custom_mutators/symcc/symcc.c
index 18b475b8..f32f98f8 100644
--- a/custom_mutators/symcc/symcc.c
+++ b/custom_mutators/symcc/symcc.c
@@ -41,6 +41,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;