Skip to content
Snippets Groups Projects
Commit cc762d02 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed hhash index free with custom mm_ctx and lookup.

parent 8a59c47c
No related branches found
No related tags found
1 merge request!147Packet Api Rewrite
......@@ -375,7 +375,7 @@ void hhash_build_index(hhash_t* tbl)
/* Free old index. */
if (tbl->index) {
if (tbl->mm.free) {
free(tbl->index);
tbl->mm.free(tbl->index);
}
tbl->index = NULL;
}
......
......@@ -157,6 +157,7 @@ knot_zone_t *knot_zonedb_find_suffix(knot_zonedb_t *db, const knot_dname_t *dnam
break;
}
dname = knot_wire_next_label(dname, NULL);
--zone_labels;
}
return ret;
......
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