From: Frederic Suter Date: Tue, 12 Nov 2019 14:54:48 +0000 (+0100) Subject: don't use a deleted container by the newly created one X-Git-Tag: v3.25~395 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/de32c0ad080a06621f84d9274bf0a3f020c38207?ds=sidebyside don't use a deleted container by the newly created one --- diff --git a/src/instr/instr_platform.cpp b/src/instr/instr_platform.cpp index 85e78593f3..f0dd78aa8d 100644 --- a/src/instr/instr_platform.cpp +++ b/src/instr/instr_platform.cpp @@ -326,7 +326,7 @@ static void instr_actor_on_host_change(simgrid::s4u::Actor const& actor, // create new container on the new_host location simgrid::instr::Container::by_name(actor.get_host()->get_name())->create_child(instr_pid(actor), "ACTOR"); // end link - link->end_event(container, "M", std::to_string(counter)); + link->end_event(simgrid::instr::Container::by_name(instr_pid(actor)), "M", std::to_string(counter)); counter++; }