Commit cc7575ca authored by Daniel Salzman's avatar Daniel Salzman

zone_update: remove cleanup after change store error during commit

parent f1ae4c4d
......@@ -533,8 +533,7 @@ static int commit_incremental(conf_t *conf, zone_update_t *update,
/* Write changes to journal if all went well. (DNSSEC merged) */
ret = zone_change_store(conf, update->zone, &update->change);
if (ret != KNOT_EOK) {
update_rollback(&update->a_ctx);
update_free_zone(&new_contents);
/* Recoverable error. */
return ret;
}
......
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