diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2015-10-12 20:29:09 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2016-12-26 17:57:51 +0200 |
commit | d74377e62b4c649e40294dd441de72c0f092e67c (patch) | |
tree | 5165f7ed82c8ab6c39e46928d49992a4cdcb7ff2 /tests/test_stream_flags.c | |
parent | Update THANKS. (diff) | |
download | xz-d74377e62b4c649e40294dd441de72c0f092e67c.tar.xz |
liblzma: Fix a memory leak in error path of lzma_index_dup().
lzma_index_dup() calls index_dup_stream() which, in case of
an error, calls index_stream_end() to free memory allocated
by index_stream_init(). However, it illogically didn't
actually free the memory. To make it logical, the tree
handling code was modified a bit in addition to changing
index_stream_end().
Thanks to Evan Nemerson for the bug report.
Diffstat (limited to 'tests/test_stream_flags.c')
0 files changed, 0 insertions, 0 deletions