X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/576fac0b2f9ff651dfc7454bba89bbf0f76e934d..b08257d400b0767a4e90203480b050c28efa3299:/teshsuite/simdag/comm-p2p-latency-1/comm-p2p-latency-1.c diff --git a/teshsuite/simdag/comm-p2p-latency-1/comm-p2p-latency-1.c b/teshsuite/simdag/comm-p2p-latency-1/comm-p2p-latency-1.c index 4896951313..ed3557ac75 100644 --- a/teshsuite/simdag/comm-p2p-latency-1/comm-p2p-latency-1.c +++ b/teshsuite/simdag/comm-p2p-latency-1/comm-p2p-latency-1.c @@ -26,7 +26,9 @@ int main(int argc, char **argv) SD_task_t task = SD_task_create("Comm 1", NULL, 1.0); - SD_task_schedule(task, 2, sg_host_list(), no_cost, communication_amount, -1.0); + sg_host_t *hosts = sg_host_list(); + SD_task_schedule(task, 2, hosts, no_cost, communication_amount, -1.0); + xbt_free(hosts); SD_simulate(-1.0);