From 50b96a462a2ab973d59690ebbf3d40cb21024c03 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 24 Feb 2017 08:09:05 +0100 Subject: [PATCH] plug some other memleaks --- src/surf/xml/surfxml_sax_cb.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(){ -- 2.20.1