From 2347c038520bc3dc6f3990a6b088d4aa8fd17c7a Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sun, 2 Nov 2025 16:08:52 -0500 Subject: free_list: partial split implementation Implemented enough of split to get basic free list reuse working. Also updated the allocate() function to return the output of split when it is called. --- src/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/alloc.c') diff --git a/src/alloc.c b/src/alloc.c index dd1c8aa..3f805db 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -53,7 +53,7 @@ void *allocate(size_t size) { /* first check for a suitable memory block on the free list */ free_nd *nd = fl_find_first_fit(free_list, size); if (nd) { - void *return_region = fl_split_node(&free_list, nd, size); + return fl_split_node(&free_list, nd, size); } /* -- cgit v1.2.3