X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4dbc84f53aac793fc159d833090e421ec0025905..fd9d52c0c7a9c96221fff2013cdeef05b6e979e2:/src/surf/AsImpl.cpp diff --git a/src/surf/AsImpl.cpp b/src/surf/AsImpl.cpp index 5979392d00..12d2c2f4cd 100644 --- a/src/surf/AsImpl.cpp +++ b/src/surf/AsImpl.cpp @@ -19,7 +19,6 @@ namespace simgrid { } AsImpl::~AsImpl() { - xbt_dynar_free(&upDownLinks); delete netcard_; } @@ -211,6 +210,7 @@ namespace simgrid { getRouteRecursive(src, route.gw_src, links, latency); for (auto link: *route.link_list) links->push_back(link); + delete route.link_list; /* If dest gateway is not our destination, we have to recursively find our way from this point */ if (route.gw_dst != dst)