A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[surf] Fix NetCard leak
[simgrid.git]
/
src
/
surf
/
AsImpl.cpp
diff --git
a/src/surf/AsImpl.cpp
b/src/surf/AsImpl.cpp
index
3a9f80e
..
23b78aa
100644
(file)
--- a/
src/surf/AsImpl.cpp
+++ b/
src/surf/AsImpl.cpp
@@
-19,7
+19,6
@@
namespace simgrid {
}
AsImpl::~AsImpl()
{
}
AsImpl::~AsImpl()
{
- delete netcard_;
}
xbt_dynar_t AsImpl::getOneLinkRoutes() {
}
xbt_dynar_t AsImpl::getOneLinkRoutes() {
@@
-210,6
+209,7
@@
namespace simgrid {
getRouteRecursive(src, route.gw_src, links, latency);
for (auto link: *route.link_list)
links->push_back(link);
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)
/* If dest gateway is not our destination, we have to recursively find our way from this point */
if (route.gw_dst != dst)