Skip to content

Commit

Permalink
Fix memory leak introduced in the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Nov 27, 2019
1 parent 1b2ea8c commit 2ef8d77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2ef8d77

Please sign in to comment.