summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2021-12-12 14:44:35 -0500
committerJon Santmyer <jon@jonsantmyer.com>2021-12-12 14:44:35 -0500
commit2bc4d6b92189beb8969e2846a84a2f19e267ca53 (patch)
tree3cfb6a57bf95e2968ec213c3981bd7b1dcb907cb
parent9b8971df9a130daf42bc12fadb8ffa32fe16d499 (diff)
downloaddiheap-2bc4d6b92189beb8969e2846a84a2f19e267ca53.tar.gz
diheap-2bc4d6b92189beb8969e2846a84a2f19e267ca53.tar.bz2
diheap-2bc4d6b92189beb8969e2846a84a2f19e267ca53.zip
fix premature commit
-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;
}