X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/56a800c7de10c3e3a1a854434e6bfdeb01696dba..21446da234b79358c6f7ed918e582e7e5a36d8b3:/src/smpi/smpi_global.cpp diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index 6ef4b1959b..76cd8d78ac 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -466,8 +466,12 @@ void smpi_global_destroy(void) xbt_free(process_data); process_data = NULL; - if (MPI_COMM_WORLD != MPI_COMM_UNINITIALIZED) + if (MPI_COMM_WORLD != MPI_COMM_UNINITIALIZED){ + smpi_comm_cleanup_smp(MPI_COMM_WORLD); + smpi_comm_cleanup_attributes(MPI_COMM_WORLD); xbt_free(MPI_COMM_WORLD); + } + MPI_COMM_WORLD = MPI_COMM_NULL; xbt_free(index_to_process_data);