From: schnorr Date: Mon, 26 Mar 2012 07:23:32 +0000 (+0200) Subject: [trace] fix another memory leak when graph extraction is used with option "one link... X-Git-Tag: v3_7~212 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d1acbadb51ecdca03fdc5cd804be61c5be3fe4d0?ds=sidebyside [trace] fix another memory leak when graph extraction is used with option "one link only" --- diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index bbe392c3a2..fa8b22c352 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -151,7 +151,10 @@ static void recursiveGraphExtraction (AS_t rc, container_t container, xbt_dict_t //user might want to extract a graph using routes with only one link //see --cfg=tracing/onelink_only:1 or --help-tracing for details - if (TRACE_onelink_only() && xbt_dynar_length (route->link_list) > 1) continue; + if (TRACE_onelink_only() && xbt_dynar_length (route->link_list) > 1){ + generic_free_route(route); + continue; + } //traverse the route connecting the containers unsigned int cpt;