- // I will need this route for some time so let's call get_route with 0 as last argument to preserve it
- xbt_dynar_t route;
- routing_get_route_and_latency(src_name, dst_name,&route,NULL,0);
+ // I need to have the forward and backward routes at the same time, so allocate "route". That way, the routing wont clean it up
+ xbt_dynar_t route=xbt_dynar_new(global_routing->size_of_link,NULL);
+ routing_get_route_and_latency(src_name, dst_name,&route,NULL);