From: erg Date: Wed, 9 Feb 2011 22:53:58 +0000 (+0000) Subject: Fix space leak in twopi. X-Git-Tag: LAST_LIBGRAPH~32^2~1060 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b95cd39b787d0b2d6e29d7e009fef7e5e6026725;p=graphviz Fix space leak in twopi. --- diff --git a/lib/twopigen/twopiinit.c b/lib/twopigen/twopiinit.c index b0ee53b7a..eb85b86a3 100644 --- a/lib/twopigen/twopiinit.c +++ b/lib/twopigen/twopiinit.c @@ -146,7 +146,9 @@ void twopi_cleanup(graph_t * g) node_t *n; edge_t *e; - for (n = agfstnode(g); n; n = agnxtnode(g, n)) { + n = agfstnode (g); + free (ND_alg(n)); + for (; n; n = agnxtnode(g, n)) { for (e = agfstout(g, n); e; e = agnxtout(g, e)) { gv_cleanup_edge(e); }