A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix compilation error
[simgrid.git]
/
src
/
xbt
/
mmalloc
/
mfree.c
diff --git
a/src/xbt/mmalloc/mfree.c
b/src/xbt/mmalloc/mfree.c
index
aae9149
..
86b7505
100644
(file)
--- 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);
}
}