mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-04 17:15:23 -06:00
Core: Allocator fix
git-svn-id: svn://ultimatepp.org/upp/trunk@13375 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
81ed274ab1
commit
dfc40c7aa7
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ int Heap::HugeFree(void *ptr)
|
|||
LTIMING("Sys Free");
|
||||
byte *sysblk = (byte *)h - 4096;
|
||||
size_t count = *((size_t *)sysblk);
|
||||
SysFreeRaw(sysblk, count);
|
||||
SysFreeRaw(sysblk, (count + 1) * 4096);
|
||||
huge_4KB_count -= count;
|
||||
sys_count--;
|
||||
sys_size -= 4096 * count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue