commit | 3bf857edfef51374f6f3fffae3d817f57d3264a0 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Mon Oct 12 20:29:09 2015 +0300 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Mon Oct 12 20:29:09 2015 +0300 |
tree | 812c25370d0c21ae2d43941822908ed990ec3351 | |
parent | 7f05803979b4b79642d5be4218a79da7a0b12c47 [diff] |
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.