mirror of https://git.tukaani.org/xz.git
Fixed a dangling pointer that caused invalid free().
This commit is contained in:
parent
cf49f42a6b
commit
863028cb7a
|
@ -385,6 +385,7 @@ lzma_info_metadata_set(lzma_info *info, lzma_allocator *allocator,
|
||||||
|
|
||||||
const lzma_ret ret = lzma_info_index_set(
|
const lzma_ret ret = lzma_info_index_set(
|
||||||
info, allocator, metadata->index, eat_index);
|
info, allocator, metadata->index, eat_index);
|
||||||
|
metadata->index = NULL;
|
||||||
if (ret != LZMA_OK)
|
if (ret != LZMA_OK)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue