From 8a7d5cba17741cb4a0c0b66ac5ab52871f100d6a Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 31 Oct 2013 18:08:50 +0100 Subject: [PATCH] leaks -- --- src/smpi/smpi_replay.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/smpi/smpi_replay.c b/src/smpi/smpi_replay.c index 4507d5286b..e8f0ada9ad 100644 --- a/src/smpi/smpi_replay.c +++ b/src/smpi/smpi_replay.c @@ -719,8 +719,11 @@ smpi_mpi_gatherv(send, send_size, MPI_CURRENT_TYPE, #endif log_timed_action (action, clock); + xbt_free(recvcounts); xbt_free(send); - xbt_free(recv); + if(recv)xbt_free(recv); + xbt_free(disps); + } static void action_reducescatter(const char *const *action) { @@ -783,7 +786,8 @@ static void action_reducescatter(const char *const *action) { #ifdef HAVE_TRACING TRACE_smpi_collective_out(rank, -1, __FUNCTION__); #endif - + xbt_free(recvcounts); + xbt_free(disps); log_timed_action (action, clock); } -- 2.20.1