aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*