From ac013505f537818e5826df491eabffc4eabe8dde Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Mon, 30 May 2016 14:06:57 +0200 Subject: [PATCH 1/1] Fix a leak in XML parsing --- src/surf/xml/surfxml_sax_cb.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index 7e8c9278bb..68ff3721a0 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -951,6 +951,12 @@ void ETag_surfxml_process(void){ } sg_platf_new_process(&process); + + for (int i = 0; i != argc; ++i) + xbt_free(argv[i]); + xbt_free(argv); + argv = nullptr; + current_property_set = nullptr; } -- 2.20.1