Stop leaking file handles.
diff --git a/ps.c b/ps.c
index b49b7dd..ae33e32 100644
--- a/ps.c
+++ b/ps.c
@@ -177,6 +177,7 @@
 				c = ' ';
 			putc(c, stdout);
 		}
+		fclose(file);
 		if (i == 0)
 			fprintf(stdout, "[%s]", p.cmd);
 		fprintf(stdout, "\n");