From 00a227e93dec78170a0637a1216f619f70f73df9 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 13 Jan 2017 19:08:53 -0600 Subject: [PATCH] stasis_bridge.c: Fix off-nominal stasis control ref leak. Change-Id: Ib17218343a6596832060180e19386da9df150ac8 --- res/stasis/stasis_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/stasis/stasis_bridge.c b/res/stasis/stasis_bridge.c index 9ffc2d7be2..31178e9f43 100644 --- a/res/stasis/stasis_bridge.c +++ b/res/stasis/stasis_bridge.c @@ -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)) { -- 2.47.2