diff --git a/kernel/src/memory/Heap.cpp b/kernel/src/memory/Heap.cpp index a95244be..5887e7dc 100644 --- a/kernel/src/memory/Heap.cpp +++ b/kernel/src/memory/Heap.cpp @@ -222,6 +222,7 @@ Result kmalloc(usize size) block->status = BLOCK_START_MEM | BLOCK_END_MEM; block->next = nullptr; block->last = heap_end; + heap_end->next = block; heap_end = block; }