Ensure memory is freed after guard page test

This commit is contained in:
3fault
2025-07-17 10:55:45 -04:00
parent f4fc9c4a6c
commit 8cea9fc75a

View File

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