Skip to content
Snippets Groups Projects
Commit bf6f6da1 authored by Dominik Taborsky's avatar Dominik Taborsky
Browse files

node: fix memory management.

parent 81da899b
No related branches found
No related tags found
No related merge requests found
......@@ -113,9 +113,11 @@ void node_free_rrsets(zone_node_t *node, mm_ctx_t *mm)
}
for (uint16_t i = 0; i < node->rrset_count; ++i) {
rr_data_clear(&node->rrs[i], NULL);
rr_data_clear(&node->rrs[i], mm);
}
mm_free(mm, node->rrs);
node->rrs = NULL;
node->rrset_count = 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment