X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6628f256d9dc13c27721bb9846269e5f3c653d3c..2831d2c37a4dd6d3c5d0df01e6fd0ea5d18627a1:/src/xbt/mmalloc/mfree.c diff --git a/src/xbt/mmalloc/mfree.c b/src/xbt/mmalloc/mfree.c index aae9149512..86b75056ce 100644 --- a/src/xbt/mmalloc/mfree.c +++ b/src/xbt/mmalloc/mfree.c @@ -179,7 +179,6 @@ void mfree(void *md, void *ptr) if (ptr != NULL) { mdp = MD_TO_MDP(md); - LOCK(mdp); 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. */ @@ -192,6 +191,5 @@ void mfree(void *md, void *ptr) } else { __mmalloc_free(mdp, ptr); } - UNLOCK(mdp); } }