Fix memory leak introduced in the previous commit

This commit is contained in:
vit9696 2019-11-27 20:02:20 +03:00
parent 1b2ea8c276
commit 2ef8d770e4

View File

@ -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;
}