diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index 947d32d91..89976a091 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -2239,7 +2239,6 @@ static void ZSTDMT_projectJob(void* opaque, unsigned jobID, static void ZSTDMT_freeJobsTable(ZSTDMT_jobDescription* jobTable, U32 nbJobs, ZSTD_customMem cMem) { - if (jobTable == NULL) return; ZSTDMT_RustFreeJobsTableProjection const projection = { jobTable, nbJobs, @@ -2247,6 +2246,7 @@ static void ZSTDMT_freeJobsTable(ZSTDMT_jobDescription* jobTable, U32 nbJobs, ZS cMem, ZSTDMT_job_table_destroy_sync }; + if (jobTable == NULL) return; ZSTDMT_rust_freeJobsTable(&projection); }