|
@@ -44,7 +44,7 @@ void * coalesce(void *ptr, heap_t *heap, allocator_t *allocator) {
|
|
|
|
|
|
// Set the new size
|
|
|
// Note: the rest of the header variables will be set on free().
|
|
|
- set_size_and_free(prev, get_size(prev) + get_size(ptr) + HEADER_SIZE);
|
|
|
+ set_size_and_free(allocator, prev, get_size(prev) + get_size(ptr) + HEADER_SIZE);
|
|
|
|
|
|
/* If the current block is the allocator's border pointer, update the
|
|
|
* latter to point to the previous block.
|