X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3c8feb27df205372a67f1230e4038b30c38d0f3d..7f04fa5306f52960db709bb520c49e9f4ecec000:/src/smpi/colls/allgather-2dmesh.c diff --git a/src/smpi/colls/allgather-2dmesh.c b/src/smpi/colls/allgather-2dmesh.c index 8fa5d40703..0a9f688e39 100644 --- a/src/smpi/colls/allgather-2dmesh.c +++ b/src/smpi/colls/allgather-2dmesh.c @@ -129,12 +129,7 @@ smpi_coll_tuned_allgather_2dmesh(void *send_buff, int send_count, MPI_Datatype if (Y > X) num_reqs = Y; - req = (MPI_Request *) malloc(num_reqs * sizeof(MPI_Request)); - if (!req) { - printf("allgather-2dmesh-shoot.c:85: cannot allocate memory\n"); - MPI_Finalize(); - exit(failure); - } + req = (MPI_Request *) xbt_malloc(num_reqs * sizeof(MPI_Request)); req_ptr = req;