Commit ac37a32d authored by Brian Wellington's avatar Brian Wellington
Browse files

If isc_log_settag() was used to set a non-NULL tag, the allocated memory

was never freed.
parent 35af0018
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment