--- conf_config_parser.c.orig 2015-10-09 23:48:48.000000000 +0200 +++ conf_config_parser.c 2015-11-05 13:29:40.081516000 +0100 @@ -2001,7 +2001,7 @@ static int menu_template_handler(const struct aco_option *opt, struct ast_variable *var, void *obj) { struct conf_menu *dst_menu = obj; - struct confbridge_cfg *cfg = aco_pending_config(&cfg_info); + RAII_VAR(struct confbridge_cfg *, cfg, ao2_global_obj_ref(cfg_handle), ao2_cleanup); RAII_VAR(struct conf_menu *, src_menu, NULL, ao2_cleanup); if (!cfg) {