From 863028cb7ad6d8d0455fa69348f56b376d7b908f Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 23 Jan 2008 00:18:32 +0200 Subject: [PATCH] Fixed a dangling pointer that caused invalid free(). --- src/liblzma/common/info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/liblzma/common/info.c b/src/liblzma/common/info.c index 2a59a02..cbd32d6 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;