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.
This commit is contained in:
Matthijs Mekking
2024-04-17 12:19:11 +02:00
parent ed9704fcda
commit 22a4bd5bbe

View 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);