From: Yann Collet Date: Fri, 14 Apr 2017 05:46:41 +0000 (-0700) Subject: fixed : memory leak in fuzzer test X-Git-Tag: v1.2.0^2~34^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f913cbed33e4707fab0fdf61bacf1b5076454a14;p=thirdparty%2Fzstd.git fixed : memory leak in fuzzer test --- diff --git a/tests/fuzzer.c b/tests/fuzzer.c index cdbbe8a22..ee051be3e 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -549,7 +549,9 @@ static int basicUnitTests(U32 seed, double compressibility) if (!ZSTD_isError(result)) goto _output_error; if (ZSTD_getErrorCode(result) != ZSTD_error_srcSize_wrong) goto _output_error; DISPLAYLEVEL(4, "OK : %s \n", ZSTD_getErrorName(result)); - } } + } + ZSTD_freeCCtx(cctx); + } /* block API tests */ { ZSTD_CCtx* const cctx = ZSTD_createCCtx();