mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibGC: Pass correct args to VirtualFree
VirtualFree expects zero to be passed as size for MEM_RELEASE.
This commit is contained in:
parent
859991ca7b
commit
0de3a95433
|
|
@ -40,7 +40,7 @@ BlockAllocator::~BlockAllocator()
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
#else
|
||||
if (!VirtualFree(block, HeapBlock::block_size, MEM_RELEASE)) {
|
||||
if (!VirtualFree(block, 0, MEM_RELEASE)) {
|
||||
warnln("{}", Error::from_windows_error());
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user