From 2ef8d770e426e59115aa9fdd0ee942ba3617ae2e Mon Sep 17 00:00:00 2001 From: vit9696 Date: Wed, 27 Nov 2019 20:02:20 +0300 Subject: [PATCH] Fix memory leak introduced in the previous commit --- common/utility.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/utility.cpp b/common/utility.cpp index f7b0fb3..f08e028 100755 --- a/common/utility.cpp +++ b/common/utility.cpp @@ -258,6 +258,7 @@ USTATUS decompress(const UByteArray & compressedData, const UINT8 compressionTyp // Decompress section data if (U_SUCCESS != LzmaDecompress(data, dataSize, decompressed)) { + free(decompressed); return U_CUSTOMIZED_DECOMPRESSION_FAILED; }