diff options
-rw-r--r-- | procps/ps.c | 1 | ||||
-rw-r--r-- | ps.c | 1 |
2 files changed, 2 insertions, 0 deletions
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"); @@ -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"); |