From 3abe15bc2c29bad3adcf59f73a61734780453cf4 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 4 Jun 2019 12:06:34 +0200 Subject: [PATCH] Fixes dummy leak in fuzz driver --- tests/fuzz/onefile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/fuzz/onefile.c b/tests/fuzz/onefile.c index caf3ca565..45c32829f 100644 --- a/tests/fuzz/onefile.c +++ b/tests/fuzz/onefile.c @@ -38,12 +38,14 @@ int main(int argc, char** argv) return 2; } if (fread(Data, Size, 1, fp) != 1) { + free(Data); fclose(fp); return 2; } //lauch fuzzer LLVMFuzzerTestOneInput(Data, Size); + free(Data); fclose(fp); return 0; }