fixed memory leak

This commit is contained in:
Yann Collet committed 2016-09-15 17:02:06 +02:00
1 parent 3e47dbcc8c
commit a6bdf55759
3 files changed
+7 -4

No files matched your search

+1
View File
@@ -2817,6 +2817,7 @@ size_t ZSTD_freeCStream(ZSTD_CStream* zcs)
if (zcs==NULL) return 0; /* support free on NULL */
{ ZSTD_customMem const cMem = zcs->customMem;
ZSTD_freeCCtx(zcs->cctx);
ZSTD_freeCDict(zcs->cdict);
ZSTD_free(zcs->inBuff, cMem);
ZSTD_free(zcs->outBuff, cMem);
ZSTD_free(zcs, cMem);