X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/624be7bba85ad8836fd648834395bf4dfacfe54d..22000124cfde898c839f9581a9088d80b162e0c5:/examples/msg/cloud-migration/cloud-migration.c diff --git a/examples/msg/cloud-migration/cloud-migration.c b/examples/msg/cloud-migration/cloud-migration.c index 1c92fb5c85..ffb593e890 100644 --- a/examples/msg/cloud-migration/cloud-migration.c +++ b/examples/msg/cloud-migration/cloud-migration.c @@ -56,6 +56,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; s_vm_params_t params; memset(¶ms, 0, sizeof(params)); @@ -137,6 +138,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();