X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/278ed194f8f669d600e7c42b54a767e6d36705a2..9aa23d528c48b1567e7277fb78807397c9960237:/src/surf/surf_routing_floyd.c diff --git a/src/surf/surf_routing_floyd.c b/src/surf/surf_routing_floyd.c index e094d6cc7c..337ca87bd5 100644 --- a/src/surf/surf_routing_floyd.c +++ b/src/surf/surf_routing_floyd.c @@ -150,8 +150,9 @@ static void floyd_finalize(AS_t rc) xbt_dict_free(&as->generic_routing.bypassRoutes); /* Delete index dict */ xbt_dict_free(&(as->generic_routing.to_index)); - /* Delete dictionary index dict, predecessor and links table */ + /* Delete predecessor and cost table */ xbt_free(as->predecessor_table); + xbt_free(as->cost_table); model_generic_finalize(rc); } @@ -340,8 +341,8 @@ void model_floyd_parse_route(AS_t rc, const char *src, { if(route->dst_gateway && route->src_gateway) { - char *gw_src = xbt_strdup(route->src_gateway); - char *gw_dst = xbt_strdup(route->dst_gateway); + char *gw_src = route->src_gateway; + char *gw_dst = route->dst_gateway; route->src_gateway = gw_dst; route->dst_gateway = gw_src; }