From e59ef9a46f77025f8607d671ee6a0e0dbeea0228 Mon Sep 17 00:00:00 2001 From: navarrop Date: Thu, 2 Dec 2010 13:32:17 +0000 Subject: [PATCH 1/1] Free those variables after the end of the cluster tag. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8878 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/surf_routing.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 50250c817a..3428327e5f 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -3375,9 +3375,6 @@ static void routing_parse_Scluster(void) SURFXML_START_TAG(link); SURFXML_END_TAG(link); - free(link_backbone); - free(link_router); - DEBUG0(" "); #ifdef HAVE_PCRE_LIB @@ -3510,6 +3507,8 @@ static void routing_parse_Scluster(void) #endif + free(link_backbone); + free(link_router); DEBUG0(""); SURFXML_END_TAG(AS); -- 2.20.1