From: Matt Kraai Date: Thu, 7 Sep 2000 04:34:17 +0000 (-0000) Subject: Stop leaking file handles. X-Git-Tag: 0_47~109 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44e384034380bde803ec444418532a315e8589e8;p=oweals%2Fbusybox.git Stop leaking file handles. --- diff --git a/procps/ps.c b/procps/ps.c index b49b7ddd4..ae33e3262 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"); 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) c = ' '; putc(c, stdout); } + fclose(file); if (i == 0) fprintf(stdout, "[%s]", p.cmd); fprintf(stdout, "\n");