]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix memory leak on DNAME 0TTL records.
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Wed, 17 Jun 2026 15:30:21 +0000 (17:30 +0200)
committerYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Wed, 17 Jun 2026 15:30:21 +0000 (17:30 +0200)
doc/Changelog
services/cache/rrset.c

index d2b37df10dc33174de81340a853163f64e72210c..b02d4003fd1c668cfe367e9409142f853f4159b0 100644 (file)
@@ -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.
index 73b3fb7abbc3fd929777477acb64b2f3bfbb7e32..6fd9bc6e732b0b8d6835c409805d891ee3d53b1f 100644 (file)
@@ -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. */