X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d78311982007a2c778ff692c35c9d2787642c199..1086dc93eea1d88ee42e9317fda2278c784d0b60:/src/xbt/mmalloc/mfree.c diff --git a/src/xbt/mmalloc/mfree.c b/src/xbt/mmalloc/mfree.c index 185fe6bdb6..ff89699679 100644 --- a/src/xbt/mmalloc/mfree.c +++ b/src/xbt/mmalloc/mfree.c @@ -152,13 +152,11 @@ void __mmalloc_free(struct mdesc *mdp, void *ptr) /* Return memory to the heap. */ -void mfree(void *md, void *ptr) +void mfree(xbt_mheap_t mdp, void *ptr) { - struct mdesc *mdp; register struct alignlist *l; if (ptr != NULL) { - mdp = MD_TO_MDP(md); for (l = mdp->aligned_blocks; l != NULL; l = l->next) { if (l->aligned == ptr) { l->aligned = NULL; /* Mark the slot in the list as free. */