From: Mark Andrews Date: Fri, 14 May 2004 01:04:46 +0000 (+0000) Subject: move cleanup of in_roothints earlier to make it easier to detect reference X-Git-Tag: v9.2.4rc4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e46ccaeb869d10f15cbfdd6307b5e0764260c10;p=thirdparty%2Fbind9.git move cleanup of in_roothints earlier to make it easier to detect reference count mismatches. --- diff --git a/bin/named/server.c b/bin/named/server.c index 2339fe34e00..0afa93a4fe6 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.339.2.28 2004/04/20 07:10:48 marka Exp $ */ +/* $Id: server.c,v 1.339.2.29 2004/05/14 01:04:46 marka Exp $ */ #include @@ -2387,6 +2387,8 @@ shutdown_server(isc_task_t *task, isc_event_t *event) { if (server->blackholeacl != NULL) dns_acl_detach(&server->blackholeacl); + dns_db_detach(&server->in_roothints); + isc_task_endexclusive(server->task); isc_task_detach(&server->task); @@ -2517,8 +2519,6 @@ ns_server_destroy(ns_server_t **serverp) { INSIST(ISC_LIST_EMPTY(server->viewlist)); - dns_db_detach(&server->in_roothints); - dns_aclenv_destroy(&server->aclenv); isc_quota_destroy(&server->recursionquota);