X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e1d6abd00fd704c14e115a4287a607d088ae664..fd0d3c14d401269513e9fdc38d8a8df875a15ed3:/examples/s4u/replay-comm/s4u-replay-comm.cpp diff --git a/examples/s4u/replay-comm/s4u-replay-comm.cpp b/examples/s4u/replay-comm/s4u-replay-comm.cpp index 39e8ac6f87..e04bd783fc 100644 --- a/examples/s4u/replay-comm/s4u-replay-comm.cpp +++ b/examples/s4u/replay-comm/s4u-replay-comm.cpp @@ -60,8 +60,6 @@ public: ACT_DEBUG("Entering Send: %s (size: %" PRIu64 ") -- Actor %s on mailbox %s", NAME.c_str(), size, simgrid::s4u::this_actor::get_cname(), to->get_cname()); to->put(payload, size); - delete payload; - log_action(action, simgrid::s4u::Engine::get_clock() - clock); } @@ -73,7 +71,7 @@ public: ACT_DEBUG("Receiving: %s -- Actor %s on mailbox %s", NAME.c_str(), simgrid::s4u::this_actor::get_cname(), from->get_cname()); - from->get(); + delete static_cast(from->get()); log_action(action, simgrid::s4u::Engine::get_clock() - clock); } };