From: Emden Gansner Date: Tue, 25 Oct 2011 19:32:26 +0000 (-0400) Subject: Remove redundant memory reclamation X-Git-Tag: LAST_LIBGRAPH~32^2~615^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4b4f5745d8e44df632c1cbdd2493e95a79e8f5a;p=graphviz Remove redundant memory reclamation --- diff --git a/lib/dotgen/rank.c b/lib/dotgen/rank.c index 2fa21e41f..957e82133 100644 --- a/lib/dotgen/rank.c +++ b/lib/dotgen/rank.c @@ -1231,16 +1231,6 @@ int infosizes[] = { }; #endif -static void -cleanLevelGraph (graph_t * g) -{ - node_t* n; - for (n = agfstnode(g); n; n = agnxtnode(g, n)) { - free_list (ND_out(n)); - free_list (ND_in(n)); - } -} - void dot2_rank(graph_t * g, aspect_t* asp) { int ssize; @@ -1286,7 +1276,6 @@ void dot2_rank(graph_t * g, aspect_t* asp) #ifdef DEBUG fprintf (stderr, "Xg %d nodes %d edges\n", agnnodes(Xg), agnedges(Xg)); #endif - cleanLevelGraph (Xg); agclose(Xg); }