diff --git a/c/simplestatus.c b/c/simplestatus.c index 896db22..7e00d02 100644 --- a/c/simplestatus.c +++ b/c/simplestatus.c @@ -128,6 +128,7 @@ char *execstdout(char *file, char *arg[], char *env[]) { return buf; } close(pfds[0]); + close(pfds[1]); } } @@ -239,6 +240,8 @@ module *parse_file(char *file) { } } + fclose(fp); + return head; }