2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

3138. [bug] Address memory leaks and out-of-order operations when

shutting named down. [RT #25210]
This commit is contained in:
Mark Andrews
2011-07-28 04:27:27 +00:00
parent fe34ff3f45
commit 31f46f1869
5 changed files with 30 additions and 15 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.88 2011/07/28 04:04:37 each Exp $ */
/* $Id: socket.c,v 1.89 2011/07/28 04:27:27 marka Exp $ */
/* This code uses functions which are only available on Server 2003 and
* higher, and Windows XP and higher.
@@ -3346,6 +3346,7 @@ isc__socket_accept(isc_socket_t *sock,
*/
isc_task_attach(task, &ntask);
if (isc_task_exiting(ntask)) {
free_socket(&nsock, __LINE__);
isc_task_detach(&ntask);
isc_event_free(ISC_EVENT_PTR(&adev));
UNLOCK(&sock->lock);