From 35fd6847fe99c2f7bbec247c71b44babcdcab2b8 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Thu, 12 Nov 2020 21:51:44 +0100 Subject: another two mem leaks --- custom_mutators/radamsa/radamsa-mutator.c | 1 + 1 file changed, 1 insertion(+) (limited to 'custom_mutators/radamsa/radamsa-mutator.c') 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; -- cgit 1.4.1