]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #674: Do not free pointers given by getenv.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Jun 2015 07:31:43 +0000 (07:31 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Jun 2015 07:31:43 +0000 (07:31 +0000)
git-svn-id: file:///svn/unbound/trunk@3432 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
libunbound/libunbound.c

index f06654de45526b749f9eb05c3910b2cf2bea4dab..0ab107b9c078cb8054d1ec3a2f50eed1ec264455 100644 (file)
@@ -1,3 +1,6 @@
+2 June 2015: Wouter
+       - Fix #674: Do not free pointers given by getenv.
+
 29 May 2015: Wouter
        - Fix that unparseable error responses are ratelimited.
        - SOA negative TTL is capped at minimumttl in its rdata section.
index 37288f256eeea5c567e7c557de882b5eeda9385c..b3a4c2ba77f6c8ce86ca7dbf7eb18f177d37d5b4 100644 (file)
@@ -1028,7 +1028,6 @@ ub_ctx_hosts(struct ub_ctx* ctx, const char* fname)
                                        "\\hosts");
                                retval=ub_ctx_hosts(ctx, buf);
                        }
-                       free(name);
                        return retval;
                }
                return UB_READFILE;