]> granicus.if.org Git - graphviz/commitdiff
Fix bug 1816.
authorerg <devnull@localhost>
Mon, 16 Nov 2009 19:40:01 +0000 (19:40 +0000)
committererg <devnull@localhost>
Mon, 16 Nov 2009 19:40:01 +0000 (19:40 +0000)
lib/common/input.c

index 7281be8193f60f9177d83d09d20426d909a61156..f24ceff61b1ea152dc0b3b53cfca5e8d4b1f0d38 100644 (file)
@@ -581,6 +581,8 @@ graph_t *gvNextInputGraph(GVC_t *gvc)
            gvg_init(gvc, g, fn, gidx++);
            break;
        }
+       if (fp != stdin)
+           fclose (fp);
        fp = NULL;
        gidx = 0;
     }