hmi/console: fix fd leak
This commit is contained in:
parent
a86e2b506a
commit
1639097200
@ -217,4 +217,5 @@ post(char *srv, int fd)
|
||||
sprint(buf, "%d", fd);
|
||||
if(write(f, buf, strlen(buf)) != strlen(buf))
|
||||
sysfatal("write");
|
||||
close(f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user