X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/581a88bba670ee2756e1f4986f55c863190d6930..cc375ad134c19925e1e343bae932be21cf8a8caf:/src/smpi/smpi_mpi_dt.c?ds=sidebyside diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index d42e29f030..19f02289f3 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -181,7 +181,7 @@ int smpi_datatype_copy(void *sendbuf, int sendcount, MPI_Datatype sendtype, s_smpi_mpi_vector_t* type_c = (s_smpi_mpi_vector_t*)sendtype; - void * buf_tmp = malloc(count * type_c->size_oldtype); + void * buf_tmp = xbt_malloc(count * type_c->size_oldtype); subtype->serialize( sendbuf, buf_tmp,1, subtype); subtype = recvtype->substruct;