mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:42:04 -04:00
leave isc_lex_destroy() to close any open streams.
This commit is contained in:
parent
2e4bec457d
commit
5e8f2512a6
1 changed files with 4 additions and 4 deletions
|
|
@ -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 <config.h>
|
||||
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue