add more file closing to negate pipe(...) error
This commit is contained in:
parent
0dda175094
commit
dc2969a5f8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue