[Asterisk-code-review] stasis/control.c: Fix set interval hook() ref leak. (asterisk[14])
Richard Mudgett
asteriskteam at digium.com
Wed Sep 6 13:39:18 CDT 2017
Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/6438
Change subject: stasis/control.c: Fix set_interval_hook() ref leak.
......................................................................
stasis/control.c: Fix set_interval_hook() ref leak.
Change-Id: Ia0edb7dc0dbbb879c079ff7000f1b722d86ce7dc
---
M res/stasis/control.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/38/6438/1
diff --git a/res/stasis/control.c b/res/stasis/control.c
index 219a2c6..ab17985 100644
--- a/res/stasis/control.c
+++ b/res/stasis/control.c
@@ -1135,10 +1135,12 @@
if (ast_bridge_interval_hook(bridge_channel->features, 0, ms > 0 ? ms : 1,
bridge_timeout, NULL, NULL, 0)) {
+ ao2_ref(bridge_channel, -1);
return;
}
ast_queue_frame(bridge_channel->chan, &ast_null_frame);
+ ao2_ref(bridge_channel, -1);
}
int control_swap_channel_in_bridge(struct stasis_app_control *control, struct ast_bridge *bridge, struct ast_channel *chan, struct ast_channel *swap)
--
To view, visit https://gerrit.asterisk.org/6438
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0edb7dc0dbbb879c079ff7000f1b722d86ce7dc
Gerrit-Change-Number: 6438
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170906/69b7a776/attachment.html>
More information about the asterisk-code-review
mailing list