From 4dae17108bad8613dc397613422b61f253bf0fd4 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 2 Jun 2015 07:31:43 +0000 Subject: [PATCH] - Fix #674: Do not free pointers given by getenv. git-svn-id: file:///svn/unbound/trunk@3432 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ libunbound/libunbound.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.47.2