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