X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97e83f57d51ddc111fca108acfaca4443730126f..818c4f786c737b46d46e9c89e716954b8086cbfb:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 112e18527a..1f6a8568b8 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -158,6 +158,7 @@ void sg_platf_new_host(sg_platf_host_cbarg_t host) char *key,*data; xbt_dict_foreach(host->properties,cursor,key,data) h->setProperty(key,data); + xbt_dict_free(&host->properties); } if (host->pstate != 0) @@ -353,6 +354,7 @@ void sg_platf_new_cluster(sg_platf_cluster_cbarg_t cluster) xbt_free(host_id); rankId++; } + delete radicals; // Add a router. It is magically used thanks to the way in which surf_routing_cluster is written, // and it's very useful to connect clusters together