fix : custom allocator correctly propagated to child contexts

This commit is contained in:
Yann Collet committed 2017-07-10 14:21:40 -07:00
1 parent ee3423d709
commit 3510efb02d
2 files changed
+9 -13

No files matched your search

+1 -1
View File
@@ -215,7 +215,7 @@ static ZSTD_CCtx* ZSTDMT_getCCtx(ZSTDMT_CCtxPool* pool)
pool->availCCtx--;
return pool->cctx[pool->availCCtx];
}
return ZSTD_createCCtx(); /* note : can be NULL, when creation fails ! */
return ZSTD_createCCtx_advanced(pool->cMem); /* note : can be NULL, when creation fails ! */
}
static void ZSTDMT_releaseCCtx(ZSTDMT_CCtxPool* pool, ZSTD_CCtx* cctx)