app_confbridge: Plug ref leak of bridge channel with send_events

When send_events is enabled for a user, we were leaking a reference
to the bridge channel in confbridge_manager.c:send_message().  This
also caused the bridge snapshot to not be destroyed.

Change-Id: I87a7ae9175e3cd29f6d6a8750e0ec5427bd98e97
This commit is contained in:
George Joseph 2020-06-07 18:02:00 -06:00 committed by Friendly Automation
parent 3d1bf3c537
commit b9f42a717e
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ static void send_message(const char *msg_name, char *conf_name, struct ast_json
char *json;
int rc = 0;
struct ast_frame f;
struct ast_bridge_channel *bridge_chan;
RAII_VAR(struct ast_bridge_channel *, bridge_chan, NULL, ao2_cleanup);
bridge_chan = ast_channel_get_bridge_channel(chan);
if (!bridge_chan) {