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
Call munmap with the size in smpi_shared_free.
[simgrid.git]
/
src
/
smpi
/
smpi_shared.cpp
diff --git
a/src/smpi/smpi_shared.cpp
b/src/smpi/smpi_shared.cpp
index
04c73f6
..
6715971
100644
(file)
--- a/
src/smpi/smpi_shared.cpp
+++ b/
src/smpi/smpi_shared.cpp
@@
-427,7
+427,7
@@
void smpi_shared_free(void *ptr)
xbt_free(meta->second.data);
}
- munmap(ptr,
0); // the POSIX says that I should not give 0 as a length, but it seems to work OK
+ munmap(ptr,
meta->second.size);
} else {
XBT_DEBUG("Classic free of %p", ptr);
xbt_free(ptr);