summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/KernelHeap.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Private/Source/KernelHeap.cxx b/Private/Source/KernelHeap.cxx
index a4a0b323..d47b6931 100644
--- a/Private/Source/KernelHeap.cxx
+++ b/Private/Source/KernelHeap.cxx
@@ -95,6 +95,11 @@ Int32 ke_delete_ke_heap(VoidPtr heapPtr) {
virtualAddress->hCRC32 = 0;
virtualAddress->hMagic = 0;
+ PTEWrapper pageWrapper(false, false, false, (UIntPtr)virtualAddress);
+ Ref<PTEWrapper*> pteAddress{ &pageWrapper };
+
+ kHeapPageManager.Free(pteAddress);
+
--kHeapCount;
return 0;
}