From: Frederic Suter Date: Wed, 22 Nov 2017 06:18:30 +0000 (+0100) Subject: plug leaks X-Git-Tag: v3.18~261 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2f9a8837fd52283dc86be08bbb97c10a6981489c?ds=sidebyside plug leaks --- diff --git a/teshsuite/msg/task_progress/task_progress.cpp b/teshsuite/msg/task_progress/task_progress.cpp index 7c3ad78048..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; }