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

new_node: Fixed a leak.

parent 6ce82ce8
No related branches found
No related tags found
1 merge request!208Efficient node data storage, libknot refactoring
......@@ -228,7 +228,7 @@ static int forward_rr(char *addr_str, synth_template_t *tpl, knot_pkt_t *pkt, kn
static knot_rrset_t *synth_rr(char *addr_str, synth_template_t *tpl, knot_pkt_t *pkt, struct query_data *qdata)
{
/* Synthetize empty RR. */
knot_dname_t* qname = knot_dname_copy(qdata->name, NULL);
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);
......
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