mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Don't leak block on allocation failure.
This commit is contained in:
parent
eab7777ec3
commit
1e3f5477c3
@ -506,6 +506,7 @@ int sceKernelAllocPartitionMemory(int partition, const char *name, int type, u32
|
||||
PartitionMemoryBlock *block = new PartitionMemoryBlock(&userMemory, name, size, (MemblockType)type, addr);
|
||||
if (!block->IsValid())
|
||||
{
|
||||
delete block;
|
||||
ERROR_LOG(HLE, "ARGH! sceKernelAllocPartitionMemory failed");
|
||||
return SCE_KERNEL_ERROR_MEMBLOCK_ALLOC_FAILED;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 7211f79d7df7dc8efc59d3d568a2cbd41772136c
|
||||
Subproject commit a9c949b87dc69d4d6cde854b73455a170a2aaff4
|
Loading…
Reference in New Issue
Block a user