X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cf2261b8e065347d0fa26473f4b808e50b81e451..ba221c8370d9d092fae68858cd4004250030740e:/examples/msg/parallel_task/test_ptask.c diff --git a/examples/msg/parallel_task/test_ptask.c b/examples/msg/parallel_task/test_ptask.c index b73ab3aef4..8047d8a444 100644 --- a/examples/msg/parallel_task/test_ptask.c +++ b/examples/msg/parallel_task/test_ptask.c @@ -72,6 +72,8 @@ int execute(int argc, char *argv[]) execution_time = MSG_get_clock(); MSG_parallel_task_execute(task); + MSG_task_destroy(task); + xbt_free(m_host_list); execution_time = MSG_get_clock() - execution_time; INFO1("execution_time=%g ", execution_time); @@ -122,6 +124,8 @@ int redistribute(int argc, char *argv[]) redistribution_time = MSG_get_clock(); MSG_parallel_task_execute(task); + MSG_task_destroy(task); + xbt_free(m_host_list); redistribution_time = MSG_get_clock() - redistribution_time; INFO1("redistribution_time=%g ", redistribution_time);