]> granicus.if.org Git - graphviz/commitdiff
fix freeTreeList
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Fri, 25 Feb 2022 02:07:14 +0000 (02:07 +0000)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 25 Feb 2022 02:07:14 +0000 (02:07 +0000)
lib/common/ns.c

index cf7c2451b36c5f346c846ee4dc104109645d1583..7581885ec1f5f3d6cd77800ac5e26cd4c6e8a189 100644 (file)
@@ -648,7 +648,7 @@ static void
 freeTreeList (graph_t* g)
 {
     node_t *n;
-    for (n = GD_nlist(G); n; n = ND_next(n)) {
+    for (n = GD_nlist(g); n; n = ND_next(n)) {
        free_list(ND_tree_in(n));
        free_list(ND_tree_out(n));
        ND_mark(n) = FALSE;