summaryrefslogtreecommitdiffstats
path: root/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'heap.c')
-rw-r--r--heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/heap.c b/heap.c
index 777be78..f2ff57e 100644
--- a/heap.c
+++ b/heap.c
@@ -159,7 +159,7 @@ __heap_bucket_append(struct heap *heap, struct bucket *bucket, size_t size)
/*Mark up to head used memory*/
if(free->next == NULL) {
- heap->used += bestfit->sizetaken;
+ heap->used += size;
heap->buckets_head = free;
}