Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into actor-yield
[simgrid.git] / teshsuite / msg / task_progress / task_progress.cpp
index 7c3ad78048254ecb78d0695833f8ffe374823fc9..c681ec9f316983e200fb7a55f4255acd980842c4 100644 (file)
@@ -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;
 }