2
0
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:
Brian Wellington
2000-05-19 01:21:31 +00:00
parent afb6c3b615
commit 16ccb6a9ba

View File

@@ -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));
}