]> granicus.if.org Git - graphviz/commitdiff
Fix memory leak
authorerg <devnull@localhost>
Wed, 9 Feb 2011 22:56:15 +0000 (22:56 +0000)
committererg <devnull@localhost>
Wed, 9 Feb 2011 22:56:15 +0000 (22:56 +0000)
lib/circogen/circularinit.c

index 35f4910cbd4b2c192b7320b34f1a3d427ecbf174..11c3100cc0d02c7dbf46619021c745d77410e14c 100644 (file)
@@ -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);