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:
Enji Cooper 2017-05-28 09:01:58 +00:00
parent 7deab5004c
commit 15f9aa4370
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319061

View File

@ -63,6 +63,7 @@ do_accept(__unused void *arg)
if (accept_fd < 0)
err(1, "accept");
close(accept_fd);
return (NULL);
}