1
0
Fork 0
mirror of https://github.com/pnx/m16vm synced 2026-06-16 03:44:55 +02:00

as/as.c: only close if fd_out is not stdout

This commit is contained in:
Henrik Hautakoski 2023-11-25 13:52:09 +01:00
parent eb3e432c91
commit 1a8417bd57

View file

@ -55,6 +55,7 @@ int main(int argc, char **argv) {
parse(fd_in, fd_out);
fclose(fd_in);
fclose(fd_out);
if (fd_out != stdout)
fclose(fd_out);
return 0;
}