X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d3d2bbd100f6750e1dc9194b18238ce1544d9cba..83e8a9d7a3ec42a459b77b448486317f2ab354ce:/teshsuite/simdag/comp-only-par/comp-only-par.c diff --git a/teshsuite/simdag/comp-only-par/comp-only-par.c b/teshsuite/simdag/comp-only-par/comp-only-par.c index 7d206316ec..6ce8ddb9b1 100644 --- a/teshsuite/simdag/comp-only-par/comp-only-par.c +++ b/teshsuite/simdag/comp-only-par/comp-only-par.c @@ -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);