Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Plug 2 memleaks
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 20 Apr 2016 09:55:59 +0000 (11:55 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 20 Apr 2016 09:55:59 +0000 (11:55 +0200)
src/surf/AsImpl.cpp
src/surf/xml/surfxml_sax_cb.cpp

index 3a9f80e..12d2c2f 100644 (file)
@@ -210,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)
index 3d2e6a3..7e8c927 100644 (file)
@@ -781,6 +781,7 @@ void ETag_surfxml_ASroute(void){
   }
 
   sg_platf_new_route(&ASroute);
+  delete ASroute.link_list;
 }
 
 void ETag_surfxml_bypassRoute(void){