Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / teshsuite / simdag / comp-only-par / comp-only-par.c
index 7d20631..9ae5391 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007, 2009-2011, 2013-2015. The SimGrid Team.
+/* Copyright (c) 2007-2020. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -16,7 +16,9 @@ int main(int argc, char **argv)
   SD_create_environment(argv[1]);
 
   SD_task_t task = SD_task_create("partask", NULL, 1.0);
-  SD_task_schedule(task, 2, sg_host_list(), comp_cost, comm_amount, -1.0);
+  sg_host_t *hosts = sg_host_list();
+  SD_task_schedule(task, 2, hosts, comp_cost, comm_amount, -1.0);
+  xbt_free(hosts);
 
   SD_simulate(-1.0);
 
@@ -25,6 +27,5 @@ int main(int argc, char **argv)
 
   SD_task_destroy(task);
 
-  SD_exit();
   return 0;
 }