summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorMatt Kraai2000-09-07 04:34:17 +0000
committerMatt Kraai2000-09-07 04:34:17 +0000
commit44e384034380bde803ec444418532a315e8589e8 (patch)
tree0ee6ff2b1c375f0db2e47eda5826e24cf5ec9045 /procps
parent17c88518131275dab3cd2ff5b4d87a985b10e8b3 (diff)
downloadbusybox-44e384034380bde803ec444418532a315e8589e8.zip
busybox-44e384034380bde803ec444418532a315e8589e8.tar.gz
Stop leaking file handles.
Diffstat (limited to 'procps')
-rw-r--r--procps/ps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/procps/ps.c b/procps/ps.c
index b49b7dd..ae33e32 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -177,6 +177,7 @@ extern int ps_main(int argc, char **argv)
c = ' ';
putc(c, stdout);
}
+ fclose(file);
if (i == 0)
fprintf(stdout, "[%s]", p.cmd);
fprintf(stdout, "\n");