mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
Fix sys_memory_free
This commit is contained in:
parent
bf89b709cb
commit
9acaee563b
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ error_code sys_memory_free(u32 addr)
|
|||
|
||||
const auto area = vm::get(vm::any, addr);
|
||||
|
||||
if ((area->flags & 3) != 1)
|
||||
if (!area || (area->flags & 3) != 1)
|
||||
{
|
||||
return {CELL_EINVAL, addr};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue