Commit a3a09ca2 authored by Mark Andrews's avatar Mark Andrews
Browse files

1592. [bug] configure_view() could leak a dispatch.

parent 3494f301
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment