From 5e8f2512a6de2b8a697f4f824b1f43538cd85a11 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 30 Nov 2001 03:14:50 +0000 Subject: [PATCH] leave isc_lex_destroy() to close any open streams. --- lib/dns/master.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/master.c b/lib/dns/master.c index 042805839b..9353b667f7 100644 --- a/lib/dns/master.c +++ b/lib/dns/master.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: master.c,v 1.130 2001/11/30 01:59:11 gson Exp $ */ +/* $Id: master.c,v 1.131 2001/11/30 03:14:50 marka Exp $ */ #include @@ -369,10 +369,10 @@ loadctx_destroy(dns_loadctx_t *lctx) { if (lctx->inc != NULL) incctx_destroy(lctx->mctx, lctx->inc); - if (lctx->lex != NULL) { - (void)isc_lex_close(lctx->lex); + /* isc_lex_destroy() will close all open streams */ + if (lctx->lex != NULL) isc_lex_destroy(&lctx->lex); - } + if (lctx->task != NULL) isc_task_detach(&lctx->task); DESTROYLOCK(&lctx->lock);