From 1dfc18d63b5897f9a2d6713b30132378937a07ad Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 9 Feb 2011 22:56:15 +0000 Subject: [PATCH] Fix memory leak --- lib/circogen/circularinit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/circogen/circularinit.c b/lib/circogen/circularinit.c index 35f4910cb..11c3100cc 100644 --- a/lib/circogen/circularinit.c +++ b/lib/circogen/circularinit.c @@ -280,6 +280,7 @@ void circo_cleanup(graph_t * g) closeDerivedGraph((graph_t*)GD_alg(g)); /* delete derived graph */ + free (ND_alg(n)); for (; n; n = agnxtnode(g, n)) { for (e = agfstout(g, n); e; e = agnxtout(g, e)) { gv_cleanup_edge(e); -- 2.40.0