Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Finally fix memleak."
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 5 Feb 2018 15:15:19 +0000 (16:15 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 5 Feb 2018 15:15:19 +0000 (16:15 +0100)
This reverts commit aad6442f8fd7d7610f49271010cb8a650f4772de.

src/smpi/internals/smpi_global.cpp

index 4a7ef4f..5b0bab3 100644 (file)
@@ -352,7 +352,8 @@ void smpi_global_destroy()
     if (process->comm_intra() != MPI_COMM_NULL) {
       simgrid::smpi::Comm::destroy(process->comm_intra());
     }
     if (process->comm_intra() != MPI_COMM_NULL) {
       simgrid::smpi::Comm::destroy(process->comm_intra());
     }
-    delete process;
+    xbt_os_timer_free(process->timer());
+    xbt_mutex_destroy(process->mailboxes_mutex());
   }
   process_data.clear();
 
   }
   process_data.clear();