X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eb5b6b0c3c4d9a38bb205b2c8bc9aeeba8674a25..3b013fc09cb58be09f9f8d3f3a8161cb92bdbb84:/src/smpi/colls/allgatherv-ompi-bruck.c diff --git a/src/smpi/colls/allgatherv-ompi-bruck.c b/src/smpi/colls/allgatherv-ompi-bruck.c index dc5d2fb477..3ea3c011d6 100644 --- a/src/smpi/colls/allgatherv-ompi-bruck.c +++ b/src/smpi/colls/allgatherv-ompi-bruck.c @@ -89,7 +89,7 @@ int smpi_coll_tuned_allgatherv_ompi_bruck(void *sbuf, int scount, int *new_scounts = NULL, *new_sdispls = NULL; ptrdiff_t slb, rlb, sext, rext; char *tmpsend = NULL, *tmprecv = NULL; - MPI_Datatype new_rdtype, new_sdtype; + MPI_Datatype new_rdtype = MPI_DATATYPE_NULL, new_sdtype = MPI_DATATYPE_NULL; size = smpi_comm_size(comm); rank = smpi_comm_rank(comm); @@ -162,8 +162,8 @@ int smpi_coll_tuned_allgatherv_ompi_bruck(void *sbuf, int scount, rbuf, 1, new_rdtype, recvfrom, COLL_TAG_ALLGATHERV, comm, MPI_STATUS_IGNORE); - smpi_datatype_free(&new_sdtype); - smpi_datatype_free(&new_rdtype); + smpi_datatype_unuse(new_sdtype); + smpi_datatype_unuse(new_rdtype); }