mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
stasis_bridge.c: Fix off-nominal stasis control ref leak.
Change-Id: Ib17218343a6596832060180e19386da9df150ac8
This commit is contained in:
@@ -215,6 +215,7 @@ static int bridge_stasis_push(struct ast_bridge *self, struct ast_bridge_channel
|
||||
*/
|
||||
return -1;
|
||||
}
|
||||
ao2_cleanup(control);
|
||||
|
||||
/*
|
||||
* If going into a holding bridge, default the role to participant, if
|
||||
@@ -234,7 +235,6 @@ static int bridge_stasis_push(struct ast_bridge *self, struct ast_bridge_channel
|
||||
}
|
||||
}
|
||||
|
||||
ao2_cleanup(control);
|
||||
if (self->allowed_capabilities & STASIS_BRIDGE_MIXING_CAPABILITIES) {
|
||||
ast_bridge_channel_update_linkedids(bridge_channel, swap);
|
||||
if (ast_test_flag(&self->feature_flags, AST_BRIDGE_FLAG_SMART)) {
|
||||
|
Reference in New Issue
Block a user