Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a few more memory leaks.
[simgrid.git] / examples / msg / chainsend / peer.c
index 4d0f9a0..9275175 100644 (file)
@@ -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);
 }