X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6d91658f3a725485895e158e512e2815bf94e0b4..613c303dd60c8c071e7107701834d33877a4d285:/examples/msg/cloud-simple/cloud-simple.c diff --git a/examples/msg/cloud-simple/cloud-simple.c b/examples/msg/cloud-simple/cloud-simple.c index 4140f38498..d62c24c9b4 100644 --- a/examples/msg/cloud-simple/cloud-simple.c +++ b/examples/msg/cloud-simple/cloud-simple.c @@ -113,6 +113,7 @@ static int master_main(int argc, char *argv[]) msg_host_t pm0 = xbt_dynar_get_as(hosts_dynar, 0, msg_host_t); msg_host_t pm1 = xbt_dynar_get_as(hosts_dynar, 1, msg_host_t); msg_host_t pm2 = xbt_dynar_get_as(hosts_dynar, 2, msg_host_t); + xbt_dynar_free(&hosts_dynar); msg_vm_t vm0, vm1; @@ -280,6 +281,7 @@ int main(int argc, char *argv[]) xbt_dynar_t hosts_dynar = MSG_hosts_as_dynar(); msg_host_t pm0 = xbt_dynar_get_as(hosts_dynar, 0, msg_host_t); + xbt_dynar_free(&hosts_dynar); launch_master(pm0); int res = MSG_main();