2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

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

was never freed.
This commit is contained in:
Brian Wellington
2000-06-02 18:15:45 +00:00
parent 35af0018dd
commit ac37a32d23

View File

@@ -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;