From: Arnaud Giersch Date: Mon, 21 Nov 2011 11:18:59 +0000 (+0100) Subject: Strings are already dup'ed by caller. X-Git-Tag: exp_20120216~241^2~59 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc2d578697d0c72bab738d4b0485fbb477980036?ds=sidebyside Strings are already dup'ed by caller. --- diff --git a/src/surf/surf_routing_floyd.c b/src/surf/surf_routing_floyd.c index e094d6cc7c..95292f8b33 100644 --- a/src/surf/surf_routing_floyd.c +++ b/src/surf/surf_routing_floyd.c @@ -340,8 +340,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; }