]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix a memory leak that could occur when signing
authorEvan Hunt <each@isc.org>
Sat, 1 Jun 2024 00:16:29 +0000 (17:16 -0700)
committerNicki Křížek <nicki@isc.org>
Mon, 10 Jun 2024 14:55:12 +0000 (16:55 +0200)
when signatures were not added because of too many types already
existing at a node, the diff was not being cleaned up; this led to
a memory leak being reported at shutdown.

lib/dns/zone.c

index 9f152a7c0255f151582f85326f325c306082e1cd..f8c0723ff6bcb4cd26c0d091df28569221809686 100644 (file)
@@ -9743,6 +9743,7 @@ cleanup:
        }
 
        dns_diff_clear(&_sig_diff);
+       dns_diff_clear(&post_diff);
 
        for (i = 0; i < nkeys; i++) {
                dst_key_free(&zone_keys[i]);