Stop leaking file handles.
This commit is contained in:
parent
17c8851813
commit
44e3840343
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user