X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/17023af1f7484d0592aa37f08bcd35e7dda3efe3..6534c58a2afafe609a4671073f6b20f839e20fd7:/src/surf/surf_routing_generic.cpp diff --git a/src/surf/surf_routing_generic.cpp b/src/surf/surf_routing_generic.cpp index c455405087..262042a96c 100644 --- a/src/surf/surf_routing_generic.cpp +++ b/src/surf/surf_routing_generic.cpp @@ -47,11 +47,14 @@ void AsGeneric::getRouteAndLatency(NetCard */*src*/, NetCard */*dst*/, sg_platf_ THROW_IMPOSSIBLE; } -AsGeneric::AsGeneric() { +AsGeneric::AsGeneric(const char*name) + : AsNone(name) +{ p_bypassRoutes = xbt_dict_new_homogeneous((void (*)(void *)) routing_route_free); } -AsGeneric::~AsGeneric() { +AsGeneric::~AsGeneric() +{ xbt_dict_free(&p_bypassRoutes); }