Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix use after free when using SIMIX_network_wait().
[simgrid.git] / src / msg / gos.c
index 24e98d7..1055d81 100644 (file)
@@ -550,6 +550,7 @@ MSG_error_t MSG_comm_wait(msg_comm_t comm, double timeout)
       task = (m_task_t) SIMIX_communication_get_src_buf(comm);
       task->simdata->refcount--;
     }
+    SIMIX_communication_destroy(comm);
 
     /* FIXME: these functions are not tracable */
   }