X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ba15f0e8e5fe9918bad627ec253f3fcae8921432..b08257d400b0767a4e90203480b050c28efa3299:/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c diff --git a/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c b/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c index 9aeb6b04ec..5ba3320eaf 100644 --- a/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c +++ b/teshsuite/simdag/comm-mxn-all2all/comm-mxn-all2all.c @@ -30,7 +30,9 @@ int main(int argc, char **argv) SD_task_t task = SD_task_create("All2all task", 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);