X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b84f74436484e202969c8c78862815bb4b2307e..aa3595ed3c903167f52eeeab8e636bec96b258dd:/src/smpi/colls/gather-ompi.c 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);