A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Free memory in msg/cloud examples.
[simgrid.git]
/
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
5881fc5
..
0e2aaab
100644
(file)
--- 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);
}