From ac37a32d2312958b1018c86f58d18201762eff19 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 2 Jun 2000 18:15:45 +0000 Subject: [PATCH] If isc_log_settag() was used to set a non-NULL tag, the allocated memory was never freed. --- lib/isc/log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/isc/log.c b/lib/isc/log.c index 0ef7ca0263..67a9fc3e8f 100644 --- a/lib/isc/log.c +++ b/lib/isc/log.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: log.c,v 1.36 2000/06/01 17:20:23 tale Exp $ */ +/* $Id: log.c,v 1.37 2000/06/02 18:15:45 bwelling Exp $ */ /* Principal Authors: DCL */ @@ -522,6 +522,8 @@ isc_logconfig_destroy(isc_logconfig_t **lcfgp) { sizeof(ISC_LIST(isc_logchannellist_t))); lcfg->dynamic = ISC_FALSE; + if (lcfg->tag != NULL) + isc_mem_free(lcfg->lctx->mctx, lcfg->tag); lcfg->tag = NULL; lcfg->highest_level = 0; lcfg->duplicate_interval = 0;