Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a potential memory leak in function DecompressBlobToFile in Compr…
…essedBlob.cpp
  • Loading branch information
lioncash committed Mar 7, 2013
1 parent f352827 commit 279e3c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DiscIO/Src/CompressedBlob.cpp
Expand Up @@ -301,7 +301,10 @@ bool DecompressBlobToFile(const char* infile, const char* outfile, CompressCB ca

File::IOFile f(outfile, "wb");
if (!f)
{
delete reader;
return false;
}

const CompressedBlobHeader &header = reader->GetHeader();
u8* buffer = new u8[header.block_size];
Expand Down

0 comments on commit 279e3c7

Please sign in to comment.