From: Arnaud Giersch Date: Sat, 16 Sep 2017 13:27:42 +0000 (+0200) Subject: Leak-- (seen in maestro-set). X-Git-Tag: v3_17~102 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5f1dc33c9f76ee99973ba93f034f031451398ebe?hp=84457938de6b0a772b1681e03199ece0a0bb10a3 Leak-- (seen in maestro-set). --- diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 930d90e43e..999099f5d4 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -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; } /**