From ba82f10f3e6c03bbe3002b38e59ae34a71574359 Mon Sep 17 00:00:00 2001 From: Marion Guthmuller Date: Fri, 14 Dec 2012 15:50:35 +0100 Subject: [PATCH] remove comm from rdv if comm destroyed before being finished --- src/simix/smx_network.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.20.1