X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc01c6a871dbbfd0cc84e26eb9f94aeb539e613e..ba221c8370d9d092fae68858cd4004250030740e:/examples/msg/sendrecv/sendrecv.c diff --git a/examples/msg/sendrecv/sendrecv.c b/examples/msg/sendrecv/sendrecv.c index d413535edb..a16f9ccab1 100644 --- a/examples/msg/sendrecv/sendrecv.c +++ b/examples/msg/sendrecv/sendrecv.c @@ -97,6 +97,7 @@ int receiver(int argc, char *argv[]) time = sender_time; communication_time = time1 - time; INFO1("Task received : %s", task_la->name); + xbt_free(task_la->data); MSG_task_destroy(task_la); INFO1("Communic. time %le", communication_time); INFO1("--- la %f ----", communication_time); @@ -113,6 +114,7 @@ int receiver(int argc, char *argv[]) time = sender_time; communication_time = time1 - time; INFO1("Task received : %s", task_bw->name); + xbt_free(task_bw->data); MSG_task_destroy(task_bw); INFO1("Communic. time %le", communication_time); INFO1("--- bw %f ----", task_comm_size_bw / communication_time);