From 08828145338ec04f6847cf15df5841b56ddc0270 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 9 Feb 2016 01:25:40 +0100 Subject: [PATCH 1/1] Plug a memleak (free is too robust to my stupidity) --- src/surf/surfxml_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/surfxml_parse.cpp b/src/surf/surfxml_parse.cpp index ddbb223db6..da1c63d40b 100644 --- a/src/surf/surfxml_parse.cpp +++ b/src/surf/surfxml_parse.cpp @@ -1051,7 +1051,7 @@ void surf_parse_close(void) xbt_dynar_free(&surf_parsed_filename_stack); if (surf_parsed_filename) { char *dir = NULL; - xbt_dynar_pop(surf_path, dir); + xbt_dynar_pop(surf_path, &dir); free(dir); } -- 2.20.1