Fix sys_memory_free

This commit is contained in:
eladash 2018-09-01 21:16:32 +03:00 committed by Ivan
parent bf89b709cb
commit 9acaee563b
1 changed files with 1 additions and 1 deletions

View File

@ -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};
}