Skip to content
Snippets Groups Projects
Commit fa05799d authored by Marek Vavruša's avatar Marek Vavruša
Browse files

axfr: clean up hattrie pointer if interrupted

parent e121d68e
No related branches found
No related tags found
No related merge requests found
......@@ -88,10 +88,10 @@ static int axfr_process_node_tree(knot_pkt_t *pkt, const void *item, struct xfr_
static void axfr_query_cleanup(struct query_data *qdata)
{
struct axfr_proc *axfr = (struct axfr_proc *)qdata->ext;
mm_ctx_t *mm = qdata->mm;
ptrlist_free(&axfr->proc.nodes, mm);
mm->free(axfr);
hattrie_iter_free(axfr->i);
ptrlist_free(&axfr->proc.nodes, qdata->mm);
mm_free(qdata->mm, axfr);
/* Allow zone changes (finished). */
rcu_read_unlock();
......
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