fixed : memory leak in fuzzer test

This commit is contained in:
Yann Collet 2017-04-13 22:46:41 -07:00
parent 88009a8ba2
commit f913cbed33

View File

@ -549,7 +549,9 @@ static int basicUnitTests(U32 seed, double compressibility)
if (!ZSTD_isError(result)) goto _output_error; if (!ZSTD_isError(result)) goto _output_error;
if (ZSTD_getErrorCode(result) != ZSTD_error_srcSize_wrong) goto _output_error; if (ZSTD_getErrorCode(result) != ZSTD_error_srcSize_wrong) goto _output_error;
DISPLAYLEVEL(4, "OK : %s \n", ZSTD_getErrorName(result)); DISPLAYLEVEL(4, "OK : %s \n", ZSTD_getErrorName(result));
} } }
ZSTD_freeCCtx(cctx);
}
/* block API tests */ /* block API tests */
{ ZSTD_CCtx* const cctx = ZSTD_createCCtx(); { ZSTD_CCtx* const cctx = ZSTD_createCCtx();