diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-23 00:18:32 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-23 00:18:32 +0200 |
commit | 863028cb7ad6d8d0455fa69348f56b376d7b908f (patch) | |
tree | 3c2edb0c587711f9b626b9bffe2244082a50f11f /src/liblzma/common | |
parent | Added lzma_easy_* functions. These should make using (diff) | |
download | xz-863028cb7ad6d8d0455fa69348f56b376d7b908f.tar.xz |
Fixed a dangling pointer that caused invalid free().
Diffstat (limited to 'src/liblzma/common')
-rw-r--r-- | src/liblzma/common/info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/common/info.c b/src/liblzma/common/info.c index 2a59a029..cbd32d6b 100644 --- a/src/liblzma/common/info.c +++ b/src/liblzma/common/info.c @@ -385,6 +385,7 @@ lzma_info_metadata_set(lzma_info *info, lzma_allocator *allocator, const lzma_ret ret = lzma_info_index_set( info, allocator, metadata->index, eat_index); + metadata->index = NULL; if (ret != LZMA_OK) return ret; |