diff --git a/kernel/trunk/core/heap.inc b/kernel/trunk/core/heap.inc index dcccb1cc82..5c7fe45eb4 100644 --- a/kernel/trunk/core/heap.inc +++ b/kernel/trunk/core/heap.inc @@ -544,7 +544,8 @@ proc kernel_free stdcall, base:dword call mutex_unlock - mov ecx, [esi+block_size]; + mov eax, [esi+block_base] + mov ecx, [esi+block_size] shr ecx, 12 call release_pages ;eax, ecx stdcall free_kernel_space, [base]