mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
If isc_log_settag() was used to set a non-NULL tag, the allocated memory
was never freed.
This commit is contained in:
parent
35af0018dd
commit
ac37a32d23
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue