From fa2917fe0f1eae430cedc225d7abb67f34c74668 Mon Sep 17 00:00:00 2001 From: navarrop Date: Tue, 28 Sep 2010 08:52:30 +0000 Subject: [PATCH 1/1] add a free dynar git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8233 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/surf_routing.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index a9e42cc973..8f39511de2 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -408,11 +408,6 @@ static xbt_dynar_t elements_father(const char* src,const char* dst) { /* Global Business methods */ -// typedef enum { -// SURF_LOCAL_SOLVE = 0, /**< No Local solve */ -// SURF_NO_LOCAL_SOLVE, /**< Local solve */ -// } e_surf_is_local_t; - static route_extended_t _get_route(const char* src,const char* dst) { void* link; @@ -479,6 +474,9 @@ static route_extended_t _get_route(const char* src,const char* dst) { xbt_dynar_free( &(e_route_dst->generic_route.link_list) ); xbt_free(e_route_dst); } + + xbt_dynar_free(&elem_father_list); + return e_route; } -- 2.20.1