commit | 44e384034380bde803ec444418532a315e8589e8 | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Thu Sep 07 04:34:17 2000 +0000 |
committer | Matt Kraai <kraai@debian.org> | Thu Sep 07 04:34:17 2000 +0000 |
tree | 0ee6ff2b1c375f0db2e47eda5826e24cf5ec9045 | |
parent | 17c88518131275dab3cd2ff5b4d87a985b10e8b3 [diff] [blame] |
Stop leaking file handles.
diff --git a/ps.c b/ps.c index b49b7dd..ae33e32 100644 --- a/ps.c +++ b/ps.c
@@ -177,6 +177,7 @@ c = ' '; putc(c, stdout); } + fclose(file); if (i == 0) fprintf(stdout, "[%s]", p.cmd); fprintf(stdout, "\n");