From: Wouter Wijngaards Date: Tue, 2 Jun 2015 07:31:43 +0000 (+0000) Subject: - Fix #674: Do not free pointers given by getenv. X-Git-Tag: release-1.5.4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dae17108bad8613dc397613422b61f253bf0fd4;p=thirdparty%2Funbound.git - Fix #674: Do not free pointers given by getenv. git-svn-id: file:///svn/unbound/trunk@3432 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index f06654de4..0ab107b9c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 37288f256..b3a4c2ba7 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -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;