- xbt_dynar_t route;
- // I need to have the forward and backward routes at the same time, so I don't ask the routing to cleanup the route right away for me
- routing_get_route_and_latency(src_name, dst_name, &route, &latency, 0);
+ xbt_dynar_t route = xbt_dynar_new(sizeof(void*),NULL);
+ // I need to have the forward and backward routes at the same time, so allocate "route". That way, the routing wont clean it up
+ routing_get_route_and_latency(src_name, dst_name, &route, &latency);