Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid double free()s.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 20 Apr 2012 13:11:42 +0000 (15:11 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 20 Apr 2012 13:12:01 +0000 (15:12 +0200)
src/surf/surf_routing_dijkstra.c

index 4ae034e..2fb5146 100644 (file)
@@ -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);
   }
 }