]> git.kaiwu.me - klib.git/commitdiff
minor fix in the example
authorHeng Li <lh3@live.co.uk>
Sun, 8 Jan 2012 03:16:34 +0000 (22:16 -0500)
committerHeng Li <lh3@live.co.uk>
Sun, 8 Jan 2012 03:16:34 +0000 (22:16 -0500)
kopen.c

diff --git a/kopen.c b/kopen.c
index 108c3173c24c22e4a078decb85b2b4815a1ccde9..e228aa9ae9ca1f46ce4fe42d315cee7ae5f5cc8f 100644 (file)
--- a/kopen.c
+++ b/kopen.c
@@ -328,6 +328,7 @@ int main(int argc, char *argv[])
                if (feof(fp)) break;
                putchar(c);
        }
+       fclose(fp);
        kclose(x);
        return 0;
 }