]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/colls/gather-ompi.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Fixed smpi_replay_init()
[simgrid.git] / src / smpi / colls / gather-ompi.c
index b0da94d4809546c959b920cc2439279ae33191b0..46dc36e259e38a71f5f0733893b3c01a90db1677 100644 (file)
@@ -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);