mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-07 21:17:07 +09: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
Notes:
github-actions[bot]
2025-06-06 04:02:09 +00:00
Author: https://github.com/R-Goc
Commit: 0de3a95433
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4927
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue