Merge "stasis_bridge.c: Fix off-nominal stasis control ref leak." into 13

changes/17/4817/1
zuul 9 years ago committed by Gerrit Code Review
commit 89e9d2cfb8

@ -217,6 +217,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
@ -236,7 +237,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)) {

Loading…
Cancel
Save