From 4462803b0dcfe07133a8ffdc13dc1f5688196d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tatuya=20JINMEI=20=E7=A5=9E=E6=98=8E=E9=81=94=E5=93=89?= Date: Wed, 25 Jun 2008 23:13:51 +0000 Subject: [PATCH] minor resource leak in error handling of socket.c [RT #17968] --- lib/isc/win32/socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/win32/socket.c b/lib/isc/win32/socket.c index 18dbff2894..cb1a6f0a28 100644 --- a/lib/isc/win32/socket.c +++ b/lib/isc/win32/socket.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: socket.c,v 1.54 2008/03/27 23:46:57 tbox Exp $ */ +/* $Id: socket.c,v 1.55 2008/06/25 23:13:51 jinmei Exp $ */ /* This code has been rewritten to take advantage of Windows Sockets * I/O Completion Ports and Events. I/O Completion Ports is ONLY @@ -2841,6 +2841,7 @@ isc_socketmgr_create(isc_mem_t *mctx, isc_socketmgr_t **managerp) { */ result = event_thread_create(&evthread, manager); if (result != ISC_R_SUCCESS) { + isc_condition_destroy(&manager->shutdown_ok); DESTROYLOCK(&manager->lock); isc_mem_put(mctx, manager, sizeof(*manager)); return (result);