From: Arnaud Giersch Date: Mon, 5 Feb 2018 16:06:25 +0000 (+0100) Subject: Rescue cleanups lost with commit 8914cdf67bb2cdd7b64e6eeef5b06c29b24c3c96. X-Git-Tag: v3.19~254 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8aadc030761bd8e52324ec1dffe53dd335c67dd8 Rescue cleanups lost with commit 8914cdf67bb2cdd7b64e6eeef5b06c29b24c3c96. --- diff --git a/src/smpi/internals/smpi_process.cpp b/src/smpi/internals/smpi_process.cpp index 0a61f9494a..e090be0b66 100644 --- a/src/smpi/internals/smpi_process.cpp +++ b/src/smpi/internals/smpi_process.cpp @@ -52,6 +52,10 @@ Process::Process(ActorPtr actor, msg_bar_t finalization_barrier) Process::~Process() { + if (comm_self_ != MPI_COMM_NULL) + simgrid::smpi::Comm::destroy(comm_self_); + if (comm_intra_ != MPI_COMM_NULL) + simgrid::smpi::Comm::destroy(comm_intra_); xbt_os_timer_free(timer_); xbt_mutex_destroy(mailboxes_mutex_); }