]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- fix memoryleak logfile when in debug mode.
authorRalph Dolmans <ralph@nlnetlabs.nl>
Tue, 11 Oct 2016 13:43:18 +0000 (13:43 +0000)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Tue, 11 Oct 2016 13:43:18 +0000 (13:43 +0000)
git-svn-id: file:///svn/unbound/trunk@3880 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c
doc/Changelog

index 73e9fcbb623439038ec243a2b98a89ffdf6920cb..88fbb6f2ed2b2dd9357f26c0428fa1c41f2c04f6 100644 (file)
@@ -253,6 +253,7 @@ apply_settings(struct daemon* daemon, struct config_file* cfg,
        verbosity = cmdline_verbose + cfg->verbosity;
        if (debug_mode > 1) {
                cfg->use_syslog = 0;
+               free(cfg->logfile);
                cfg->logfile = NULL;
        }
        daemon_apply_cfg(daemon, cfg);
index fcf8d662a009535a63c09ec4e8d45109bec8d6e1..1c69d1125ec263a38d6ccc2615a2698c19f43ba7 100644 (file)
@@ -1,5 +1,7 @@
-11 October 2016:
+11 October 2016: Ralph
        - Added qname-minimisation-strict config option.
+       - iana portlist update.
+       - fix memoryleak logfile when in debug mode.
 
 5 October 2016: Ralph
        - Added views functionality.