From: Arnaud Giersch Date: Fri, 20 Apr 2012 13:11:42 +0000 (+0200) Subject: Avoid double free()s. X-Git-Tag: v3_7~65^2~4^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/34bade359640a6f1f39484ff409c411aba09185e Avoid double free()s. --- diff --git a/src/surf/surf_routing_dijkstra.c b/src/surf/surf_routing_dijkstra.c index 4ae034e1e1..2fb51469dc 100644 --- a/src/surf/surf_routing_dijkstra.c +++ b/src/surf/surf_routing_dijkstra.c @@ -56,8 +56,6 @@ static void graph_edge_data_free(void *e) // FIXME: useless code dupplication route_t e_route = (route_t) e; if (e_route) { xbt_dynar_free(&(e_route->link_list)); - xbt_free(e_route->src_gateway); - xbt_free(e_route->dst_gateway); xbt_free(e_route); } }