X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/33d9244599867b2daca6df5ae07fa5505571e9d8..fa2917fe0f1eae430cedc225d7abb67f34c74668:/src/surf/surf_routing.c?ds=sidebyside 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; }