Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
smells -= a lot
[simgrid.git] / teshsuite / simdag / comp-only-par / comp-only-par.c
index 7d20631..6ce8ddb 100644 (file)
@@ -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);