From 3ddf78e973c05931c1af14dee2d70b86df36f994 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 20 Mar 2017 14:56:18 +0100 Subject: [PATCH] don't free the properties of the cluster before the last host --- src/surf/sg_platf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 4b239744c4..d907291f9c 100644 --- 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_free(&cluster->properties); } 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_dict_free(&cluster->properties); // Add a router. XBT_DEBUG(" "); -- 2.20.1