From f498427f17a20a7dbace9e7af6fd75ac2a6a97d6 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 9 Nov 2001 00:37:10 +0000 Subject: [PATCH] theoretically potential file descriptor leak. --- lib/isc/unix/socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index 37c1ba1632..efaa619b30 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: socket.c,v 1.212 2001/11/08 20:24:25 gson Exp $ */ +/* $Id: socket.c,v 1.213 2001/11/09 00:37:10 marka Exp $ */ #include @@ -1341,6 +1341,7 @@ isc_socket_create(isc_socketmgr_t *manager, int pf, isc_sockettype_t type, } if (make_nonblock(sock->fd) != ISC_R_SUCCESS) { + (void)close(sock->fd); free_socket(&sock); return (ISC_R_UNEXPECTED); }