]> 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)
committerOndřej Surý <ondrej@isc.org>
Mon, 29 Jul 2024 10:27:25 +0000 (12:27 +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.

(cherry picked from commit 2825bdb1ae5be801e7ed603ba2455ed9a308f1f7)

lib/dns/zone.c

index c0262c51903e163515b2e45f7ac93bd3ed797672..8668937d6199384888b09a36b9da0d942ad82bf0 100644 (file)
@@ -10048,6 +10048,7 @@ cleanup:
        }
 
        dns_diff_clear(&_sig_diff);
+       dns_diff_clear(&post_diff);
 
        for (i = 0; i < nkeys; i++) {
                dst_key_free(&zone_keys[i]);