mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
free all keynodes when deleting an rbt node
This commit is contained in:
@@ -59,6 +59,8 @@ free_keynode(void *node, void *arg) {
|
||||
|
||||
REQUIRE(VALID_KEYNODE(keynode));
|
||||
dst_key_free(&keynode->key);
|
||||
if (keynode->next != NULL)
|
||||
free_keynode(keynode->next, mctx);
|
||||
isc_mem_put(mctx, keynode, sizeof(dns_keynode_t));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user