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
Remove c surf files
[simgrid.git]
/
examples
/
msg
/
chainsend
/
peer.c
diff --git
a/examples/msg/chainsend/peer.c
b/examples/msg/chainsend/peer.c
index 4d0f9a07dfa7313f0d96d3860be709ad3647b514..927517565b2c8c90f72728876ae91be4e39fab74 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);
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);
}
xbt_free(comms);
}