mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-28 14:04:47 -04:00
Fix memory leak introduced in the previous commit
This commit is contained in:
parent
1b2ea8c276
commit
2ef8d770e4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue