]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix FILE handle leak
authorElliot Gorokhovsky <embg@fb.com>
Tue, 14 Jun 2022 21:57:54 +0000 (14:57 -0700)
committerElliot Gorokhovsky <embg@fb.com>
Tue, 14 Jun 2022 21:57:54 +0000 (14:57 -0700)
contrib/largeNbDicts/largeNbDicts.c

index 9be059a6e2f69dec856992314f988af23af9152b..a87220b7920142e321b4ec372d89145e9df70c69 100644 (file)
@@ -715,6 +715,7 @@ static int benchMem(slice_collection_t dstBlocks,
         assert(csvFile);
         fprintf(csvFile, "%s\n", exeName);
     } else {
+        free(csvFileName);
         csvFile = fopen(csvFileName, "at");
         assert(csvFile);
     }