1
0
mirror of https://github.com/facebook/zstd.git synced 2025-03-07 01:10:04 +02:00

[POOL] Allow free on NULL when multithreading is disabled

This commit is contained in:
Nick Terrell 2017-09-05 11:18:13 -07:00
parent e7615bacc3
commit 423b133568

View File

@ -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;
}