Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Requests are deallocated inside the Waitall, do not deallocate them again after
authorAugustin Degomme <degomme@idpann.imag.fr>
Tue, 9 Apr 2013 09:58:39 +0000 (11:58 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Tue, 9 Apr 2013 10:00:52 +0000 (12:00 +0200)
src/smpi/colls/alltoall-simple.c

index bb9d87f..fa50a8c 100644 (file)
@@ -90,15 +90,12 @@ int smpi_coll_tuned_alltoall_simple(void *send_buff, int send_count,
 
   smpi_mpi_waitall(nreqs, req, statuses);
 
 
   smpi_mpi_waitall(nreqs, req, statuses);
 
-  for (i = 0, preq = req; i < nreqs; ++i, ++preq) {
-    smpi_mpi_request_free(preq);
-  }
 
   /* All done */
 
   if (req)
 
   /* All done */
 
   if (req)
-    free((char *) req);
+    xbt_free((char *) req);
   if (statuses)
   if (statuses)
-    free(statuses);
+    xbt_free(statuses);
   return MPI_SUCCESS;
 }
   return MPI_SUCCESS;
 }