X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/310e28eac7bc0c752880767cd88a66d64ebf04ef..41f8a753a029e349539da446fc3e63fda2789f1d:/examples/msg/cloud/two_tasks_vm.c diff --git a/examples/msg/cloud/two_tasks_vm.c b/examples/msg/cloud/two_tasks_vm.c index 5881fc5c36..0e2aaabea3 100644 --- a/examples/msg/cloud/two_tasks_vm.c +++ b/examples/msg/cloud/two_tasks_vm.c @@ -76,6 +76,8 @@ static int master_main(int argc, char *argv[]) } MSG_process_sleep(10000); + MSG_vm_destroy(vm0); + xbt_dynar_free(&hosts_dynar); return 1; } @@ -101,6 +103,7 @@ int main(int argc, char *argv[]){ int res = MSG_main(); XBT_INFO("Bye (simulation time %g)", MSG_get_clock()); + xbt_dynar_free(&hosts_dynar); return !(res == MSG_OK); }