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 = ' ';
|
c = ' ';
|
||||||
putc(c, stdout);
|
putc(c, stdout);
|
||||||
}
|
}
|
||||||
|
fclose(file);
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
fprintf(stdout, "[%s]", p.cmd);
|
fprintf(stdout, "[%s]", p.cmd);
|
||||||
fprintf(stdout, "\n");
|
fprintf(stdout, "\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user