From: Nick Terrell Date: Tue, 5 Sep 2017 18:18:13 +0000 (-0700) Subject: [POOL] Allow free on NULL when multithreading is disabled X-Git-Tag: fuzz-corpora2~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F832%2Fhead;p=thirdparty%2Fzstd.git [POOL] Allow free on NULL when multithreading is disabled --- 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; }