From 423b133568765ad25f73f5e189fb13805b9baf27 Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Tue, 5 Sep 2017 11:18:13 -0700 Subject: [PATCH] [POOL] Allow free on NULL when multithreading is disabled --- lib/common/pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/pool.c b/lib/common/pool.c index 9567d112f..d7080f034 100644 --- a/lib/common/pool.c +++ b/lib/common/pool.c @@ -236,7 +236,7 @@ POOL_ctx* POOL_create_advanced(size_t numThreads, size_t queueSize, ZSTD_customM } void POOL_free(POOL_ctx* ctx) { - assert(ctx == &g_ctx); + assert(!ctx || ctx == &g_ctx); (void)ctx; } -- 2.47.2