Commit 16ccb6a9 authored by Brian Wellington's avatar Brian Wellington
Browse files

free all keynodes when deleting an rbt node

parent afb6c3b6
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment