Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free memory in msg/cloud examples.
[simgrid.git] / examples / msg / cloud / two_tasks_vm.c
index 5881fc5..0e2aaab 100644 (file)
@@ -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);
 }