|
@@ -104,7 +104,7 @@ void custom_ahfree(allocator_t *allocator, heap_t* heap, void *ptr) {
|
|
|
current_maptable_node = current_maptable_node->next;
|
|
|
}
|
|
|
}
|
|
|
- push_block(ptr, current_maptable_node->fixed_list_head);
|
|
|
+ push_block(&ptr, ¤t_maptable_node->fixed_list_head);
|
|
|
} else { /* put it in the free list */
|
|
|
#endif /* WITH_FIXED_LISTS */
|
|
|
#if defined (COALESCING_FIXED) || defined (COALESCING_VARIABLE)
|
|
@@ -112,10 +112,10 @@ void custom_ahfree(allocator_t *allocator, heap_t* heap, void *ptr) {
|
|
|
* coalesced
|
|
|
*/
|
|
|
if(!coalesced) {
|
|
|
- push_block(ptr, heap->free_list_head);
|
|
|
+ push_block(&ptr, &heap->free_list_head);
|
|
|
}
|
|
|
#else
|
|
|
- push_block(ptr, heap->free_list_head);
|
|
|
+ push_block(&ptr, &heap->free_list_head);
|
|
|
#endif /* COALESCING_FIXED || COALESCING_VARIABLE */
|
|
|
#ifdef WITH_FIXED_LISTS
|
|
|
}
|