Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
leak--
authordegomme <augustin.degomme@unibas.ch>
Tue, 26 Apr 2016 15:43:32 +0000 (17:43 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 26 Apr 2016 15:43:32 +0000 (17:43 +0200)
src/smpi/smpi_global.cpp

index 9a8f5d2..1da6308 100644 (file)
@@ -476,6 +476,10 @@ void smpi_global_destroy(void)
 
   MPI_COMM_WORLD = MPI_COMM_NULL;
 
+  if (!MC_is_active()) {
+    xbt_os_timer_free(global_timer);
+  }
+
   xbt_free(index_to_process_data);
   if(smpi_privatize_global_variables)
     smpi_destroy_global_memory_segments();