mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
1592. [bug] configure_view() could leak a dispatch.
This commit is contained in:
parent
3494f301f7
commit
a3a09ca249
2
CHANGES
2
CHANGES
@ -1,3 +1,5 @@
|
||||
1592. [bug] configure_view() could leak a dispatch.
|
||||
|
||||
1591. [bug] libbind: updated to BIND 8.4.5.
|
||||
|
||||
1590. [port] netbsd: update thread support.
|
||||
|
@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.417 2004/03/10 02:19:52 marka Exp $ */
|
||||
/* $Id: server.c,v 1.418 2004/03/14 22:53:39 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -843,10 +843,6 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
|
||||
ns_g_socketmgr, ns_g_timermgr,
|
||||
check, ns_g_dispatchmgr,
|
||||
dispatch4, dispatch6));
|
||||
if (dispatch4 != NULL)
|
||||
dns_dispatch_detach(&dispatch4);
|
||||
if (dispatch6 != NULL)
|
||||
dns_dispatch_detach(&dispatch6);
|
||||
|
||||
/*
|
||||
* Set the ADB cache size to 1/8th of the max-cache-size.
|
||||
@ -1201,6 +1197,10 @@ configure_view(dns_view_t *view, cfg_obj_t *config, cfg_obj_t *vconfig,
|
||||
result = ISC_R_SUCCESS;
|
||||
|
||||
cleanup:
|
||||
if (dispatch4 != NULL)
|
||||
dns_dispatch_detach(&dispatch4);
|
||||
if (dispatch6 != NULL)
|
||||
dns_dispatch_detach(&dispatch6);
|
||||
if (order != NULL)
|
||||
dns_order_detach(&order);
|
||||
if (cmctx != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user