]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add missing isc_rwlock_destroy() for keylist_lock in dnssec-signzone
authorOndřej Surý <ondrej@isc.org>
Tue, 10 Mar 2026 09:21:04 +0000 (10:21 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 17 Mar 2026 15:05:11 +0000 (16:05 +0100)
The keylist_lock rwlock is initialized at startup but never destroyed
on exit, unlike the sibling namelock mutex which is properly cleaned up.

bin/dnssec/dnssec-signzone.c

index 27c0845c7784896284f24d846fb915a18525e519..22b5e3edd615fa62ead80bbc56b6feb828ac9082 100644 (file)
@@ -3973,6 +3973,7 @@ main(int argc, char *argv[]) {
                            &sign_finish);
        }
        isc_mutex_destroy(&namelock);
+       isc_rwlock_destroy(&keylist_lock);
 
        return vresult == ISC_R_SUCCESS ? 0 : 1;
 }