diff --git a/kernel/src/allocator.rs b/kernel/src/allocator.rs index 4c73d1ca..50fb3292 100644 --- a/kernel/src/allocator.rs +++ b/kernel/src/allocator.rs @@ -148,7 +148,7 @@ impl Heap { aligned_first_chunk + chunks_needed <= first_chunk + chunks_needed + chunk_alignment ); - let header = add as *mut Header; + let header = addr as *mut Header; unsafe { (*header).size_in_chunks = chunks_needed; }