]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix Memory Leak in Test
authorW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 18:25:30 +0000 (14:25 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 11 Sep 2019 18:25:30 +0000 (14:25 -0400)
tests/fuzzer.c

index 0956b9c5e9ed6c843107b8eeadabb7c1bf21aeea..0ae0b39434c78776269d708733c6cfaafae4a304 100644 (file)
@@ -2219,6 +2219,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
         }
 
         ZSTD_freeCCtx(cctx);
+        free(staticCCtxBuffer);
     }
     DISPLAYLEVEL(3, "OK \n");