From: Martin Quinson Date: Tue, 9 Feb 2016 00:25:40 +0000 (+0100) Subject: Plug a memleak (free is too robust to my stupidity) X-Git-Tag: v3_13~908 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/08828145338ec04f6847cf15df5841b56ddc0270 Plug a memleak (free is too robust to my stupidity) --- 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); }