aboutsummaryrefslogtreecommitdiff
path: root/ps.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-09-07 04:34:17 +0000
committerMatt Kraai <kraai@debian.org>2000-09-07 04:34:17 +0000
commit44e384034380bde803ec444418532a315e8589e8 (patch)
tree0ee6ff2b1c375f0db2e47eda5826e24cf5ec9045 /ps.c
parent17c88518131275dab3cd2ff5b4d87a985b10e8b3 (diff)
downloadbusybox-w32-44e384034380bde803ec444418532a315e8589e8.tar.gz
busybox-w32-44e384034380bde803ec444418532a315e8589e8.tar.bz2
busybox-w32-44e384034380bde803ec444418532a315e8589e8.zip
Stop leaking file handles.
Diffstat (limited to 'ps.c')
-rw-r--r--ps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ps.c b/ps.c
index b49b7ddd4..ae33e3262 100644
--- a/ps.c
+++ b/ps.c
@@ -177,6 +177,7 @@ extern int ps_main(int argc, char **argv)
177 c = ' '; 177 c = ' ';
178 putc(c, stdout); 178 putc(c, stdout);
179 } 179 }
180 fclose(file);
180 if (i == 0) 181 if (i == 0)
181 fprintf(stdout, "[%s]", p.cmd); 182 fprintf(stdout, "[%s]", p.cmd);
182 fprintf(stdout, "\n"); 183 fprintf(stdout, "\n");