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 a few more memory leaks.
[simgrid.git]
/
examples
/
msg
/
chainsend
/
peer.c
diff --git
a/examples/msg/chainsend/peer.c
b/examples/msg/chainsend/peer.c
index
4d0f9a0
..
9275175
100644
(file)
--- a/
examples/msg/chainsend/peer.c
+++ b/
examples/msg/chainsend/peer.c
@@
-115,6
+115,10
@@
void peer_shutdown(peer_t p)
XBT_DEBUG("Waiting for sends to finish before shutdown...");
MSG_comm_waitall(comms, size, PEER_SHUTDOWN_DEADLINE);
+ for (idx = 0; idx < size; idx++) {
+ MSG_comm_destroy(comms[idx]);
+ }
+
xbt_free(comms);
}