From 5f20336848afac691c04b1d5989b31589400883d Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Tue, 30 Sep 2014 11:37:50 +0200 Subject: [PATCH 1/1] use correct free method for buffer --- src/smpi/colls/gather-ompi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smpi/colls/gather-ompi.c b/src/smpi/colls/gather-ompi.c index b0da94d480..46dc36e259 100644 --- a/src/smpi/colls/gather-ompi.c +++ b/src/smpi/colls/gather-ompi.c @@ -173,14 +173,14 @@ smpi_coll_tuned_gather_ompi_binomial(void *sbuf, int scount, } } else if (!(vrank % 2)) { /* other non-leaf nodes */ - free(tempbuf); + smpi_free_tmp_buffer(tempbuf); } xbt_free(bmtree); return MPI_SUCCESS; err_hndl: if (NULL != tempbuf) - free(tempbuf); + smpi_free_tmp_buffer(tempbuf); XBT_DEBUG( "%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err, rank); -- 2.20.1