From: Yann Collet Date: Sat, 27 Jan 2018 02:09:25 +0000 (-0800) Subject: job mutex creation is checked X-Git-Tag: v1.3.4~1^2~67^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caf9e96dc3958850f14b3ddba31003e5f2f2a700;p=thirdparty%2Fzstd.git job mutex creation is checked --- diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index 22560bfb1..865035691 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -467,35 +467,39 @@ struct ZSTDMT_CCtx_s { const ZSTD_CDict* cdict; }; +static void ZSTDMT_freeJobsTable(ZSTDMT_jobDescription* jobTable, U32 nbJobs, ZSTD_customMem cMem) +{ + U32 jobNb; + if (jobTable == NULL) return; + for (jobNb=0; jobNb