Commit 8195528f authored by Vitezslav Kriz's avatar Vitezslav Kriz

zone-size-limit: fix leak with full update

parent 03d526c8
......@@ -700,9 +700,7 @@ int zone_update_commit(conf_t *conf, zone_update_t *update)
int64_t size_limit = conf_int(&val);
if (new_contents != NULL && new_contents->size > size_limit) {
if (update->flags & UPDATE_FULL) {
update->new_cont = NULL;
} else if (update->flags & UPDATE_INCREMENTAL) {
if (update->flags & UPDATE_INCREMENTAL) {
update_rollback(&update->a_ctx);
update_free_zone(&new_contents);
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