X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ba15f0e8e5fe9918bad627ec253f3fcae8921432..b08257d400b0767a4e90203480b050c28efa3299:/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c diff --git a/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c b/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c index 59cbb8d33b..07a79ac9aa 100644 --- a/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c +++ b/teshsuite/simdag/comm-mxn-independent/comm-mxn-independent.c @@ -31,7 +31,9 @@ int main(int argc, char **argv) SD_task_t task = SD_task_create("Comm 1", NULL, 1.0); - SD_task_schedule(task, 4, sg_host_list(), SD_SCHED_NO_COST, communication_amount, -1.0); + sg_host_t *hosts = sg_host_list(); + SD_task_schedule(task, 4, hosts, SD_SCHED_NO_COST, communication_amount, -1.0); + xbt_free(hosts); SD_simulate(-1.0);