From fc2d578697d0c72bab738d4b0485fbb477980036 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 21 Nov 2011 12:18:59 +0100 Subject: [PATCH] Strings are already dup'ed by caller. --- src/surf/surf_routing_floyd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1