diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-26 22:21:13 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-26 22:21:13 +0200 |
commit | e782af9110d8499c7ac2929bc871540eefea5ea1 (patch) | |
tree | 73fe67b4bb9bbb94ecbb1738f97bc171fd9d2d17 /src/liblzma/common/stream_decoder.c | |
parent | liblzma: Omit simple coder init functions if they are disabled. (diff) | |
download | xz-e782af9110d8499c7ac2929bc871540eefea5ea1.tar.xz |
liblzma: Use lzma_filters_free() in more places.
Diffstat (limited to 'src/liblzma/common/stream_decoder.c')
-rw-r--r-- | src/liblzma/common/stream_decoder.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/liblzma/common/stream_decoder.c b/src/liblzma/common/stream_decoder.c index 6885d0c7..dcf7c149 100644 --- a/src/liblzma/common/stream_decoder.c +++ b/src/liblzma/common/stream_decoder.c @@ -243,9 +243,7 @@ stream_decode(void *coder_ptr, const lzma_allocator *allocator, // Free the allocated filter options since they are needed // only to initialize the Block decoder. - for (size_t i = 0; i < LZMA_FILTERS_MAX; ++i) - lzma_free(filters[i].options, allocator); - + lzma_filters_free(filters, allocator); coder->block_options.filters = NULL; // Check if memory usage calculation and Block decoder |