fix : custom allocator correctly propagated to child contexts

This commit is contained in:
Yann Collet
2017-07-10 14:21:40 -07:00
parent ee3423d709
commit 3510efb02d
2 changed files with 9 additions and 13 deletions
+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)