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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
examples
/
msg
/
cloud-masterworker
/
cloud-masterworker.c
diff --git
a/examples/msg/cloud-masterworker/cloud-masterworker.c
b/examples/msg/cloud-masterworker/cloud-masterworker.c
index
0137bdf
..
a2ba395
100644
(file)
--- a/
examples/msg/cloud-masterworker/cloud-masterworker.c
+++ b/
examples/msg/cloud-masterworker/cloud-masterworker.c
@@
-202,6
+202,7
@@
int main(int argc, char *argv[])
msg_host_t pm = xbt_dynar_get_as(pms, i, msg_host_t);
xbt_dynar_push(worker_pms, &pm);
}
msg_host_t pm = xbt_dynar_get_as(pms, i, msg_host_t);
xbt_dynar_push(worker_pms, &pm);
}
+ xbt_dynar_free(&pms);
/* Start the master process on the master pm. */
MSG_process_create("master", master_fun, worker_pms, master_pm);
/* Start the master process on the master pm. */
MSG_process_create("master", master_fun, worker_pms, master_pm);
@@
-210,7
+211,6
@@
int main(int argc, char *argv[])
XBT_INFO("Bye (simulation time %g)", MSG_get_clock());
xbt_dynar_free(&worker_pms);
XBT_INFO("Bye (simulation time %g)", MSG_get_clock());
xbt_dynar_free(&worker_pms);
- xbt_dynar_free(&pms);
return !(res == MSG_OK);
}
return !(res == MSG_OK);
}