mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Ensure memory is freed after guard page test
This commit is contained in:
@@ -734,6 +734,13 @@ namespace
|
||||
success = false;
|
||||
}
|
||||
|
||||
// Free the allocated memory
|
||||
if (!VirtualFree(addr, 0, MEM_RELEASE))
|
||||
{
|
||||
puts("Failed to free allocated region");
|
||||
success = false;
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user