Commit 94e0cad1 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

tiny bugfix

parent de20da61
......@@ -442,8 +442,10 @@ void update_rollback(apply_ctx_t *ctx)
zone_tree_free(&ctx->nsec3_ptrs);
trie_cow_rollback(ctx->contents->nodes->cow, trie_cb_noop, NULL);
ctx->contents->nodes->cow = NULL;
if (ctx->contents->nsec3_nodes != NULL) {
trie_cow_rollback(ctx->contents->nsec3_nodes->cow, trie_cb_noop, NULL);
ctx->contents->nsec3_nodes->cow = NULL;
}
if (ctx->cow_mutex != NULL) {
......@@ -465,8 +467,10 @@ void update_free_zone(zone_contents_t *contents)
}
trie_cow_commit(contents->nodes->cow, trie_cb_noop, NULL);
contents->nodes->cow = NULL;
if (contents->nsec3_nodes != NULL) {
trie_cow_commit(contents->nsec3_nodes->cow, trie_cb_noop, NULL);
contents->nsec3_nodes->cow = NULL;
}
free(contents->nodes);
......
Markdown is supported
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