Don't leak accept_fd on thread completion
MFC after: 3 days Reported by: Coverity CID: 1296068 Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
430dd479b1
commit
b3f130849c
@ -63,6 +63,7 @@ do_accept(__unused void *arg)
|
||||
if (accept_fd < 0)
|
||||
err(1, "accept");
|
||||
|
||||
close(accept_fd);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user