X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/260f5b9677866b61cd6ada7c6516faefcfcd1989..d2c2569a6b3d6a0a4ff772359351d0fdfa53551b:/src/smpi/smpi_global.cpp?ds=sidebyside diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index 6fa71ac9f1..7f6c52c4d8 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);