Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Leak-- (seen in maestro-set).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 16 Sep 2017 13:27:42 +0000 (15:27 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 16 Sep 2017 21:55:04 +0000 (23:55 +0200)
src/simix/ActorImpl.cpp

index 930d90e..999099f 100644 (file)
@@ -428,16 +428,10 @@ void SIMIX_process_detach()
   if (not context)
     xbt_die("Not a suitable context");
 
-  simix_global->cleanup_process_function(context->process());
-
-  // Let maestro ignore we are still alive:
-  // xbt_swag_remove(context->process(), simix_global->process_list);
-
-  // TODO, Remove from proces list:
-  //   xbt_swag_remove(process, sg_host_simix(host)->process_list);
-
+  auto process = context->process();
+  simix_global->cleanup_process_function(process);
   context->attach_stop();
-  // delete context;
+  delete process;
 }
 
 /**