From 83ad7badf138111000ddf9b456fb80890924093b Mon Sep 17 00:00:00 2001 From: pini Date: Sat, 13 Mar 2010 16:23:40 +0000 Subject: [PATCH] Move a cleanup call to a better place. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7240 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_network.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 0fa9ca385c..36ec03c000 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -294,6 +294,7 @@ static inline void SIMIX_communication_wait_for_completion(smx_comm_t comm, doub SIMIX_communication_destroy(comm); THROW0(network_error, 0, "Link failure"); } + SIMIX_communication_destroy(comm); } /** @@ -473,8 +474,6 @@ smx_comm_t SIMIX_network_irecv(smx_rdv_t rdv, void *dst_buff, size_t *dst_buff_s XBT_INLINE void SIMIX_network_wait(smx_comm_t comm, double timeout) { /* Wait for communication completion */ SIMIX_communication_wait_for_completion(comm, timeout); - - SIMIX_communication_destroy(comm); } /** @Returns whether the (asynchronous) communication is done yet or not */ -- 2.20.1