From 13d6df2c6ff680c00589fd4ea2af2d921d7ce21f Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 8 Jun 2000 16:54:03 +0000 Subject: [PATCH] detach from dispatches, destroy dispatch manager --- bin/lwresd/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/lwresd/main.c b/bin/lwresd/main.c index 2b854b57fb..ad90e7aa66 100644 --- a/bin/lwresd/main.c +++ b/bin/lwresd/main.c @@ -136,6 +136,8 @@ create_view(isc_mem_t *mctx) { result = dns_view_createresolver(view, taskmgr, 16, sockmgr, timermgr, 0, dispatchmgr, disp4, disp6); + dns_dispatch_detach(&disp4); + dns_dispatch_detach(&disp6); if (result != ISC_R_SUCCESS) goto out; @@ -478,6 +480,8 @@ main(int argc, char **argv) { isc_mem_put(mem, cmgr, sizeof(clientmgr_t) * NTASKS); cmgr = NULL; + dns_dispatchmgr_destroy(&dispatchmgr); + isc_log_destroy(&lctx); /*