Commit 1be9f848 for xz
commit 1be9f848a2bf9f88928b1188ab06a41abb566ce2
Author: hyc-alt <250169095+hyc-alt@users.noreply.github.com>
Date: Fri Nov 27 18:48:45 2026 +0800
liblzma: mt dec: Fix a mutex and cond leak
Link: https://github.com/tukaani-project/xz/pull/268
diff --git a/src/liblzma/common/stream_decoder_mt.c b/src/liblzma/common/stream_decoder_mt.c
index a4e463b7..7f0f28bb 100644
--- a/src/liblzma/common/stream_decoder_mt.c
+++ b/src/liblzma/common/stream_decoder_mt.c
@@ -1796,6 +1796,9 @@ stream_decoder_mt_end(void *coder_ptr, const lzma_allocator *allocator)
lzma_filters_free(coder->filters, allocator);
lzma_index_hash_end(coder->index_hash, allocator);
+ mythread_cond_destroy(&coder->cond);
+ mythread_mutex_destroy(&coder->mutex);
+
lzma_free(coder, allocator);
return;
}