]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Free up auth zone parse region after use for lookup of host
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Oct 2020 12:20:16 +0000 (14:20 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Oct 2020 12:20:16 +0000 (14:20 +0200)
doc/Changelog
services/authzone.c

index 4d35a747ed1fc9927540b6c88791068747533cfc..c7076fd627534c8518c6221be897eefc7365b7bc 100644 (file)
@@ -4,6 +4,7 @@
          not drop it and attempt to modify the reply list during reply.
        - Fix that if there are on reply callbacks, those are called per
          reply and a new message created if that was modified by the call.
+       - Free up auth zone parse region after use for lookup of host
 
 13 October 2020: Wouter
        - Fix #323: unbound testsuite fails on mock build in systemd-nspawn
index a26d1003abe2b5974543dc36cd154e1dd7d6ccf3..15be5d60c653283a910abedfc0973b838bd3565c 100644 (file)
@@ -5387,6 +5387,7 @@ void auth_xfer_transfer_lookup_callback(void* arg, int rcode, sldns_buffer* buf,
                                verbose(VERB_ALGO, "auth zone %s host %s type %s transfer lookup has no answer", zname, xfr->task_transfer->lookup_target->host, (xfr->task_transfer->lookup_aaaa?"AAAA":"A"));
                        }
                }
+               regional_free_all(temp);
        } else {
                if(verbosity >= VERB_ALGO) {
                        char zname[255+1];
@@ -6444,6 +6445,7 @@ void auth_xfer_probe_lookup_callback(void* arg, int rcode, sldns_buffer* buf,
                                verbose(VERB_ALGO, "auth zone %s host %s type %s probe lookup has no address", zname, xfr->task_probe->lookup_target->host, (xfr->task_probe->lookup_aaaa?"AAAA":"A"));
                        }
                }
+               regional_free_all(temp);
        } else {
                if(verbosity >= VERB_ALGO) {
                        char zname[255+1];