From: Matthijs Mekking Date: Wed, 17 Apr 2024 10:19:11 +0000 (+0200) Subject: Also free the dst_key after keygen X-Git-Tag: v9.19.24~22^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22a4bd5bbe1c0aa19debc7d6359e34245c31b452;p=thirdparty%2Fbind9.git Also free the dst_key after keygen During cleanup, we also need to free the dst_key structure that is part of the dns_dnsseckey. --- diff --git a/bin/dnssec/dnssec-ksr.c b/bin/dnssec/dnssec-ksr.c index b94be54a106..bbb0f19a415 100644 --- a/bin/dnssec/dnssec-ksr.c +++ b/bin/dnssec/dnssec-ksr.c @@ -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);