about summary refs log tree commit diff
path: root/custom_mutators/radamsa/radamsa-mutator.c
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/radamsa/radamsa-mutator.c
parentffe41e6fcec3e6228770c8fe11ec67b8cfb4878c (diff)
downloadafl++-35fd6847fe99c2f7bbec247c71b44babcdcab2b8.tar.gz
another two mem leaks
Diffstat (limited to 'custom_mutators/radamsa/radamsa-mutator.c')
-rw-r--r--custom_mutators/radamsa/radamsa-mutator.c1
1 files changed, 1 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;