Core: Allocator fix

git-svn-id: svn://ultimatepp.org/upp/trunk@13375 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-06-09 08:02:19 +00:00
parent 81ed274ab1
commit dfc40c7aa7

View file

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