From: Yorgos Thessalonikefs Date: Wed, 17 Jun 2026 15:30:21 +0000 (+0200) Subject: - Fix memory leak on DNAME 0TTL records. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6931c794e764f502767232d54d1637a7168bc13;p=thirdparty%2Funbound.git - Fix memory leak on DNAME 0TTL records. --- diff --git a/doc/Changelog b/doc/Changelog index d2b37df10..b02d4003f 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -64,6 +64,9 @@ is necessary. Thanks to Qifan Zhang, Palo Alto Networks, for the report. +17 June 2026: Yorgos + - Fix memory leak on DNAME 0TTL records. + 16 June 2026: Wouter - Fix to disallow $INCLUDE for secondary zones. Start up of server continues if a secondary zone fails to load. diff --git a/services/cache/rrset.c b/services/cache/rrset.c index 73b3fb7ab..6fd9bc6e7 100644 --- a/services/cache/rrset.c +++ b/services/cache/rrset.c @@ -211,6 +211,7 @@ rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref, log_assert(k->rk.dname != NULL); if((k->rk.flags&PACKED_RRSET_0TTL_GRACE) !=0) { log_nametypeclass(VERB_ALGO, "rrset store of PACKED_RRSET_0TTL_GRACE rrset skipped", k->rk.dname, rrset_type, ntohs(k->rk.rrset_class)); + ub_packed_rrset_parsedelete(k, alloc); return 0; /* Do not store 0TTL items after apply of the grace ttl amount. This means the ref was not changed by the call. */