From: Augustin Degomme Date: Tue, 30 Sep 2014 09:37:50 +0000 (+0200) Subject: use correct free method for buffer X-Git-Tag: v3_12~782 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5f20336848afac691c04b1d5989b31589400883d?hp=8c8892e660c3672d9263394e22fb3a7b040914bc use correct free method for buffer --- 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);