fixed memory leak

This commit is contained in:
Yann Collet
2016-09-15 17:02:06 +02:00
parent 3e47dbcc8c
commit a6bdf55759
3 changed files with 7 additions and 4 deletions
+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);