]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Also free the dst_key after keygen
authorMatthijs Mekking <matthijs@isc.org>
Wed, 17 Apr 2024 10:19:11 +0000 (12:19 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Fri, 19 Apr 2024 08:41:04 +0000 (10:41 +0200)
During cleanup, we also need to free the dst_key structure that is part
of the dns_dnsseckey.

bin/dnssec/dnssec-ksr.c

index b94be54a106c35b72a8e2b9ee5abd87e2d17174e..bbb0f19a4153d6beb4add5f83464bc0c05b7d4f5 100644 (file)
@@ -424,6 +424,7 @@ keygen(ksr_ctx_t *ksr) {
        while (!ISC_LIST_EMPTY(keys)) {
                dns_dnsseckey_t *key = ISC_LIST_HEAD(keys);
                ISC_LIST_UNLINK(keys, key, link);
+               dst_key_free(&key->key);
                dns_dnsseckey_destroy(mctx, &key);
        }
        dns_kasp_detach(&kasp);