X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/076fa30e6cd2164fe1bb38b4b69c5d940585bef1..2f9a8837fd52283dc86be08bbb97c10a6981489c:/teshsuite/msg/task_progress/task_progress.cpp diff --git a/teshsuite/msg/task_progress/task_progress.cpp b/teshsuite/msg/task_progress/task_progress.cpp index 80e7031156..c681ec9f31 100644 --- a/teshsuite/msg/task_progress/task_progress.cpp +++ b/teshsuite/msg/task_progress/task_progress.cpp @@ -31,6 +31,7 @@ static int seq_task(int /*argc*/, char* /*argv*/ []) progress = MSG_task_get_remaining_work_ratio(task); xbt_assert(progress == 0, "Progress should be equal to 1 not %f", progress); + MSG_task_destroy(task); XBT_INFO("Goodbye now!"); return 0; } @@ -59,6 +60,10 @@ static int par_task(int /*argc*/, char* /*argv*/ []) progress = MSG_task_get_remaining_work_ratio(task); xbt_assert(progress == 0, "Progress should be equal to 1 not %f", progress); + MSG_task_destroy(task); + delete[] computation_amount; + delete[] communication_amount; + XBT_INFO("Goodbye now!"); return 0; } @@ -80,6 +85,7 @@ static int get_progress(int /*argc*/, char* /*argv*/ []) progress_prev = progress; } } + return 0; } int main(int argc, char *argv[])