Skip to content
Snippets Groups Projects
Commit 427cc820 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

zone-load: fix memory leak if out-of-zone

parent 51223b48
Branches
Tags
No related merge requests found
......@@ -163,6 +163,7 @@ static knot_node_t *create_node(knot_zone_contents_t *zone,
if (ret != KNOT_EOK) {
log_zone_warning("Node could not be added (%s).\n",
knot_strerror(ret));
knot_node_free(&node);
return NULL;
}
......@@ -517,6 +518,7 @@ static void process_rr(const scanner_t *scanner)
zone_name, name);
free(name);
free(zone_name);
knot_rrset_deep_free(&current_rrset, 1, 1);
return;
}
}
......
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