diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2018-10-22 19:45:18 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2018-10-22 19:45:18 +0000 |
commit | 1767cc4987b68ace957ea34c20634485d4232611 (patch) | |
tree | 61ddbc2b340b4c1007a520df793f7222a1b4bb6f /lib/common/pool.c | |
parent | 653667f9dc9cc0169deeca1a82a60c2e91d5683a (diff) |
Diffstat (limited to 'lib/common/pool.c')
-rw-r--r-- | lib/common/pool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/common/pool.c b/lib/common/pool.c index 1b0fe1035d2dc..98b109e72a869 100644 --- a/lib/common/pool.c +++ b/lib/common/pool.c @@ -11,7 +11,6 @@ /* ====== Dependencies ======= */ #include <stddef.h> /* size_t */ -#include <stdlib.h> /* malloc, calloc, free */ #include "pool.h" /* ====== Compiler specifics ====== */ @@ -115,7 +114,7 @@ POOL_ctx* POOL_create_advanced(size_t numThreads, size_t queueSize, ZSTD_customM * and full queues. */ ctx->queueSize = queueSize + 1; - ctx->queue = (POOL_job*) malloc(ctx->queueSize * sizeof(POOL_job)); + ctx->queue = (POOL_job*)ZSTD_malloc(ctx->queueSize * sizeof(POOL_job), customMem); ctx->queueHead = 0; ctx->queueTail = 0; ctx->numThreadsBusy = 0; |