Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'v3_9_x'
[simgrid.git] / teshsuite / msg / get_sender.c
index b9ffa48..70138a1 100644 (file)
@@ -28,6 +28,7 @@ static int receive(int argc, char *argv[])
   xbt_assert(MSG_task_get_sender(task), "No sender received");
   XBT_INFO("Got a message sent by '%s'",
         MSG_process_get_name(MSG_task_get_sender(task)));
+  MSG_task_destroy(task);
   return 0;
 }
 
@@ -45,7 +46,7 @@ int main(int argc, char *argv[])
   MSG_create_environment(argv[1]);
   MSG_launch_application(argv[1]);
   res = MSG_main();
-  MSG_clean();
+
   if (res == MSG_OK)
     return 0;
   else