mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 01:32:05 -04:00
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:
parent
ed9704fcda
commit
22a4bd5bbe
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue