Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not free the group when freeing the comm, there is a separate function for that...
authorAugustin Degomme <degomme@idpann.imag.fr>
Tue, 23 Oct 2012 08:01:39 +0000 (10:01 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Tue, 23 Oct 2012 17:07:21 +0000 (19:07 +0200)
src/smpi/smpi_comm.c
src/smpi/smpi_global.c

index c189c4d..d49b858 100644 (file)
@@ -48,7 +48,6 @@ MPI_Comm smpi_comm_new(MPI_Group group)
 
 void smpi_comm_destroy(MPI_Comm comm)
 {
-  smpi_group_destroy(comm->group);
   xbt_free(comm);
 }
 
index ef8b782..8c02fb4 100644 (file)
@@ -263,6 +263,7 @@ void smpi_global_destroy(void)
   int i;
 
   smpi_bench_destroy();
+  smpi_group_destroy(smpi_comm_group(MPI_COMM_WORLD));
   smpi_comm_destroy(MPI_COMM_WORLD);
   MPI_COMM_WORLD = MPI_COMM_NULL;
   for (i = 0; i < count; i++) {