mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
7deab5004c
commit
15f9aa4370
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319061
|
@ -63,6 +63,7 @@ do_accept(__unused void *arg)
|
|||
if (accept_fd < 0)
|
||||
err(1, "accept");
|
||||
|
||||
close(accept_fd);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue