From 5f1dc33c9f76ee99973ba93f034f031451398ebe Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 16 Sep 2017 15:27:42 +0200 Subject: [PATCH] Leak-- (seen in maestro-set). --- src/simix/ActorImpl.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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; } /** -- 2.20.1