mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-08 10:07:06 +00:00
Fix a memleak on an error condition.
This commit is contained in:
parent
cf577e9e80
commit
cf0e337b27
@ -212,6 +212,7 @@ CChunkFileReader::Error CChunkFileReader::LoadFile(const std::string& _rFilename
|
|||||||
if (!pFile.ReadBytes(buffer, sz))
|
if (!pFile.ReadBytes(buffer, sz))
|
||||||
{
|
{
|
||||||
ERROR_LOG(COMMON, "ChunkReader: Error reading file");
|
ERROR_LOG(COMMON, "ChunkReader: Error reading file");
|
||||||
|
delete [] buffer;
|
||||||
return ERROR_BAD_FILE;
|
return ERROR_BAD_FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user