Commit 6a3577ed authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

zone_update: freeing apply_ctx after RCU

parent bca2a6e2
......@@ -694,8 +694,7 @@ int zone_update_commit(conf_t *conf, zone_update_t *update)
}
changeset_clear(&update->change);
}
update_cleanup(update->a_ctx);
free(update->a_ctx);
callrcu_wrapper(update->a_ctx, (void (*)(void *))update_cleanup, false);
update->a_ctx = NULL;
update->new_cont = NULL;
......
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