cli : better adaptation to small files

This commit is contained in:
Yann Collet committed 2016-09-21 16:46:08 +02:00
1 parent 714464f05d
commit 993060e0f2
3 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -2730,7 +2730,7 @@ ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionL
size_t ZSTD_freeCDict(ZSTD_CDict* cdict)
{
if (cdict==NULL) return 0; /* support free on NULL */
{ ZSTD_customMem cMem = cdict->refContext->customMem;
{ ZSTD_customMem const cMem = cdict->refContext->customMem;
ZSTD_freeCCtx(cdict->refContext);
ZSTD_free(cdict->dictContent, cMem);
ZSTD_free(cdict, cMem);