From 7c565abba87dd3b99de7a81b7b765aafd8a744e8 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 17 May 2016 14:35:53 +0200 Subject: [PATCH] Fix: `hole_list_allocator` instead of `linked_list_allocator` (#161) Reported by @simonlovgren in #160 --- blog/post/2016-04-11-kernel-heap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/post/2016-04-11-kernel-heap.md b/blog/post/2016-04-11-kernel-heap.md index a9bed349..d9164c20 100644 --- a/blog/post/2016-04-11-kernel-heap.md +++ b/blog/post/2016-04-11-kernel-heap.md @@ -834,7 +834,7 @@ in src/lib.rs: in memory::init in src/memory/mod.rs: -use bump_allocator::{HEAP_START, HEAP_SIZE}; -+use linked_list_allocator::{HEAP_START, HEAP_SIZE}; ++use hole_list_allocator::{HEAP_START, HEAP_SIZE}; ``` Our kernel uses the new allocator now, so we can deallocate memory without leaking it. The example from above should work now without causing an OOM situation: