]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/msg/get_sender.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : move function from mc_global in mm_module (compilation error without MC)
[simgrid.git] / teshsuite / msg / get_sender.c
index b9ffa48829c01e132bda6049ee0e0968b9bcb814..70138a1e9f574e560680f3561dccb77b7c309136 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