summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 12:07:56 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 12:07:56 +0200
commit84e9149147e58067b08ca3cb14cfd749766d3a8b (patch)
tree015ee123ff798371094ffae91c58be5d056d292a /Private/Source
parent3facc32b746a44b0e3a91cbe1897127194396d1b (diff)
Bugfix: Free the page when done with it (Kernel Heap)
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
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;
}