Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
plug some more memleaks
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 17 Apr 2016 09:21:18 +0000 (11:21 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 17 Apr 2016 09:21:18 +0000 (11:21 +0200)
src/surf/AsDijkstra.cpp
src/surf/network_cm02.cpp
src/surf/xml/surfxml_sax_cb.cpp

index f18a2c5..ec9af59 100644 (file)
@@ -356,7 +356,6 @@ void AsDijkstra::addRoute(sg_platf_route_cbarg_t route)
     sg_platf_route_cbarg_t link_route_back = newExtendedRoute(hierarchy_, route, 0);
     newRoute(dst->id(), src->id(), link_route_back);
   }
-  delete route->link_list;
 }
 
 }
index cbdf472..5a3ae15 100644 (file)
@@ -380,6 +380,7 @@ Action *NetworkCm02Model::communicate(NetCard *src, NetCard *dst, double size, d
   }
 
   delete route;
+  delete back_route;
   XBT_OUT();
 
   Link::onCommunicate(action, src, dst);
index 9899cfa..3d2e6a3 100644 (file)
@@ -739,6 +739,7 @@ void ETag_surfxml_route(void){
   }
 
   sg_platf_new_route(&route);
+  delete route.link_list;
   xbt_dynar_free(&parsed_link_list);
 }