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

new_node: Fixed wrong free.

parent 9b5749b8
No related branches found
No related tags found
No related merge requests found
......@@ -231,7 +231,7 @@ static knot_rrset_t *synth_rr(char *addr_str, synth_template_t *tpl, knot_pkt_t
knot_dname_t* qname = knot_dname_copy(qdata->name, &pkt->mm);
knot_rrset_t *rr = knot_rrset_new(qname, 0, KNOT_CLASS_IN, &pkt->mm);
if (rr == NULL) {
knot_dname_free(&qname, NULL);
knot_dname_free(&qname, &pkt->mm);
return NULL;
}
......
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