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
don't free the properties of the cluster before the last host
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index
4b23974
..
d907291
100644
(file)
--- a/
src/surf/sg_platf.cpp
+++ b/
src/surf/sg_platf.cpp
@@
-207,7
+207,6
@@
void sg_platf_new_cluster(sg_platf_cluster_cbarg_t cluster)
xbt_dict_foreach(cluster->properties,cursor,key,data) {
xbt_dict_set(host.properties, key, xbt_strdup(data), nullptr);
}
xbt_dict_foreach(cluster->properties,cursor,key,data) {
xbt_dict_set(host.properties, key, xbt_strdup(data), nullptr);
}
- xbt_dict_free(&cluster->properties);
}
host.speed_per_pstate = cluster->speeds;
}
host.speed_per_pstate = cluster->speeds;
@@
-277,6
+276,7
@@
void sg_platf_new_cluster(sg_platf_cluster_cbarg_t cluster)
xbt_free(host_id);
rankId++;
}
xbt_free(host_id);
rankId++;
}
+ xbt_dict_free(&cluster->properties);
// Add a router.
XBT_DEBUG(" ");
// Add a router.
XBT_DEBUG(" ");