Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MSG does not auto-destroy the MSG_comm_t objects anymore
authorthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 13:41:29 +0000 (13:41 +0000)
committerthiery <thiery@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 13:41:29 +0000 (13:41 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9061 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/msg/actions/actions.c

index 7e21014..7a00e85 100644 (file)
@@ -219,6 +219,7 @@ static void action_wait(xbt_dynar_t action)
   comm = xbt_dynar_pop_as(globals->irecvs,msg_comm_t);
   MSG_comm_wait(comm,-1);
   task = xbt_dynar_pop_as(globals->tasks,m_task_t);
   comm = xbt_dynar_pop_as(globals->irecvs,msg_comm_t);
   MSG_comm_wait(comm,-1);
   task = xbt_dynar_pop_as(globals->tasks,m_task_t);
+  MSG_comm_destroy(comm);
   MSG_task_destroy(task);
 
   VERB2("%s %f", name, MSG_get_clock() - clock);
   MSG_task_destroy(task);
 
   VERB2("%s %f", name, MSG_get_clock() - clock);