Skip to content
Snippets Groups Projects
Commit 0841d5b2 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Leak fix.

parent 7e3464cf
No related branches found
No related tags found
No related merge requests found
......@@ -800,6 +800,7 @@ static int add_missing_dnskeys(const knot_rrset_t *soa,
if (to_add != NULL && result == KNOT_EOK) {
result = knot_rrset_sort_rdata(to_add);
if (result != KNOT_EOK) {
knot_rrset_deep_free(&to_add, 1);
return result;
}
result = knot_changeset_add_rrset(changeset, to_add,
......
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