From: Martin Quinson Date: Fri, 24 Feb 2017 07:09:05 +0000 (+0100) Subject: plug some other memleaks X-Git-Tag: v3_15~296 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/50b96a462a2ab973d59690ebbf3d40cb21024c03 plug some other memleaks --- diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index b295baca45..2a0f2b58eb 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -825,6 +825,7 @@ void ETag_surfxml_bypassRoute(){ parsed_link_list.clear(); sg_platf_new_bypassRoute(&route); + delete route.link_list; } void ETag_surfxml_bypassASroute(){ @@ -844,6 +845,7 @@ void ETag_surfxml_bypassASroute(){ ASroute.gw_dst = sg_netpoint_by_name_or_null(A_surfxml_bypassASroute_gw___dst); sg_platf_new_bypassRoute(&ASroute); + delete ASroute.link_list; } void ETag_surfxml_trace(){