diff --git a/CHANGES b/CHANGES index ad097e65ac..5bb7f5f607 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +6116. [bug] Fix error path cleanup issue in the dns_catz_new_zones() + function. [GL #3900] + 6105. [bug] Detach 'rpzs' and 'catzs' from the previous view in configure_rpz() and configure_catz(), respectively, just after attaching it to the new view. [GL #3880] diff --git a/lib/dns/catz.c b/lib/dns/catz.c index 4319de8af0..9a9ecd0dc9 100644 --- a/lib/dns/catz.c +++ b/lib/dns/catz.c @@ -630,7 +630,7 @@ cleanup_ht: isc_ht_destroy(&new_zones->zones); isc_refcount_destroy(&new_zones->refs); isc_mutex_destroy(&new_zones->lock); - isc_mem_put(mctx, new_zones, sizeof(*new_zones)); + isc_mem_putanddetach(&new_zones->mctx, new_zones, sizeof(*new_zones)); return (result); }