mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
Fix a potential memory leak in function DecompressBlobToFile in CompressedBlob.cpp
This commit is contained in:
parent
f3528277c4
commit
279e3c7e14
1 changed files with 3 additions and 0 deletions
|
@ -301,7 +301,10 @@ bool DecompressBlobToFile(const char* infile, const char* outfile, CompressCB ca
|
||||||
|
|
||||||
File::IOFile f(outfile, "wb");
|
File::IOFile f(outfile, "wb");
|
||||||
if (!f)
|
if (!f)
|
||||||
|
{
|
||||||
|
delete reader;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
const CompressedBlobHeader &header = reader->GetHeader();
|
const CompressedBlobHeader &header = reader->GetHeader();
|
||||||
u8* buffer = new u8[header.block_size];
|
u8* buffer = new u8[header.block_size];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue