From 751664d0892ea8b510935db9962143c4ce780c71 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Wed, 7 Sep 2011 21:27:52 +0000 Subject: [PATCH] heap: fix memory leakage git-svn-id: svn://kolibrios.org@2164 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/heap.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]