From: alegrand Date: Tue, 17 Jun 2008 13:55:31 +0000 (+0000) Subject: Cleanup: move these frees to the right location. X-Git-Tag: v3.3~352 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/aabd210b4d26517b0b8df0967bdf51181d37a5ca?hp=3c38df10f5b19109fe02620e289a879c26086f19 Cleanup: move these frees to the right location. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5634 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/surfxml_parse.c b/src/surf/surfxml_parse.c index 6126fd3d63..9e07bba47c 100644 --- a/src/surf/surfxml_parse.c +++ b/src/surf/surfxml_parse.c @@ -577,6 +577,9 @@ static void free_data(void) xbt_dict_free(&route_table); route_link_list = NULL; + xbt_dict_free(&route_multi_table); + xbt_dynar_free(&route_multi_elements); + xbt_dict_foreach(set_list, cursor, key, data) { xbt_dynar_t set = (xbt_dynar_t)data; char *name; @@ -1014,8 +1017,6 @@ static void convert_route_multi_to_routes(void) xbt_dynar_free(&keys); } pop_surfxml_bufferstack(0); - xbt_dict_free(&route_multi_table); - xbt_dynar_free(&route_multi_elements); } /* Cluster tag functions */