diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index 6d77dec450..ab44bad4fc 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -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; } diff --git a/pspautotests b/pspautotests index 7211f79d7d..a9c949b87d 160000 --- a/pspautotests +++ b/pspautotests @@ -1 +1 @@ -Subproject commit 7211f79d7df7dc8efc59d3d568a2cbd41772136c +Subproject commit a9c949b87dc69d4d6cde854b73455a170a2aaff4