xz: Use lzma_filters_free().
This commit is contained in:
parent
e782af9110
commit
11fe708db7
|
@ -523,9 +523,7 @@ parse_block_header(file_pair *pair, const lzma_index_iter *iter,
|
||||||
|
|
||||||
case LZMA_DATA_ERROR:
|
case LZMA_DATA_ERROR:
|
||||||
// Free the memory allocated by lzma_block_header_decode().
|
// Free the memory allocated by lzma_block_header_decode().
|
||||||
for (size_t i = 0; filters[i].id != LZMA_VLI_UNKNOWN; ++i)
|
lzma_filters_free(filters, NULL);
|
||||||
free(filters[i].options);
|
|
||||||
|
|
||||||
goto data_error;
|
goto data_error;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -571,9 +569,7 @@ parse_block_header(file_pair *pair, const lzma_index_iter *iter,
|
||||||
message_filters_to_str(bhi->filter_chain, filters, false);
|
message_filters_to_str(bhi->filter_chain, filters, false);
|
||||||
|
|
||||||
// Free the memory allocated by lzma_block_header_decode().
|
// Free the memory allocated by lzma_block_header_decode().
|
||||||
for (size_t i = 0; filters[i].id != LZMA_VLI_UNKNOWN; ++i)
|
lzma_filters_free(filters, NULL);
|
||||||
free(filters[i].options);
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
data_error:
|
data_error:
|
||||||
|
|
Loading…
Reference in New Issue