Commit 2a4d1d5c authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

fixup "zone: refactored post-load procedures to use zone_update structure with advantage"

parent 6d788f34
......@@ -251,10 +251,11 @@ void zone_update_clear(zone_update_t *update)
if (update->flags & UPDATE_INCREMENTAL) {
/* Revert any changes on error, do nothing on success. */
update_rollback(&update->a_ctx);
if (update->new_cont_deep_copy) {
update_cleanup(&update->a_ctx);
zone_contents_deep_free(&update->new_cont);
} else {
update_rollback(&update->a_ctx);
update_free_zone(&update->new_cont);
}
changeset_clear(&update->change);
......
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