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

xfr: fix possible memory leak (Coverity)

parent ceda7d07
Branches
Tags
No related merge requests found
...@@ -253,6 +253,7 @@ int xfrin_process_axfr_packet(knot_pkt_t *pkt, knot_ns_xfr_t *xfr, knot_zone_con ...@@ -253,6 +253,7 @@ int xfrin_process_axfr_packet(knot_pkt_t *pkt, knot_ns_xfr_t *xfr, knot_zone_con
if (*zone == NULL) { if (*zone == NULL) {
// Transfer start, init zone // Transfer start, init zone
if (rr->type != KNOT_RRTYPE_SOA) { if (rr->type != KNOT_RRTYPE_SOA) {
knot_rrset_free(&rr, NULL);
return KNOT_EMALF; return KNOT_EMALF;
} }
*zone = knot_zone_contents_new(rr->owner); *zone = knot_zone_contents_new(rr->owner);
......
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