Fix: hole_list_allocator instead of linked_list_allocator (#161)

Reported by @simonlovgren in #160
This commit is contained in:
Philipp Oppermann
2016-05-17 14:35:53 +02:00
parent a59f51766a
commit 7c565abba8

View File

@@ -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: