From: Marion Guthmuller Date: Fri, 14 Dec 2012 14:50:35 +0000 (+0100) Subject: remove comm from rdv if comm destroyed before being finished X-Git-Tag: v3_9_rc1~86^2~110^2~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ba82f10f3e6c03bbe3002b38e59ae34a71574359?ds=sidebyside remove comm from rdv if comm destroyed before being finished --- diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 2c05fb619d..11eb250003 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -325,6 +325,9 @@ void SIMIX_comm_destroy(smx_action_t action) action->comm.src_buff = NULL; } + if(action->comm.rdv) + SIMIX_rdv_remove(action->comm.rdv, action); + xbt_mallocator_release(simix_global->action_mallocator, action); }