X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/35dc676e46666d431a8a6b5062994e42caf3b4ac..9c901db76cd719b621b6d102eb621db57076f956:/examples/s4u/actor-create/s4u_actor-create.cpp diff --git a/examples/s4u/actor-create/s4u_actor-create.cpp b/examples/s4u/actor-create/s4u_actor-create.cpp index a20f02edea..b822e63286 100644 --- a/examples/s4u/actor-create/s4u_actor-create.cpp +++ b/examples/s4u/actor-create/s4u_actor-create.cpp @@ -77,6 +77,8 @@ public: char* msg1 = static_cast(simgrid::s4u::this_actor::recv(mailbox)); char* msg2 = static_cast(simgrid::s4u::this_actor::recv(mailbox)); XBT_INFO("I received '%s' and '%s'", msg1, msg2); + xbt_free(msg1); + xbt_free(msg2); XBT_INFO("I'm done. See you."); } };