[Asterisk-code-review] stasis/control.c: Fix set interval hook() ref leak. (asterisk[15])
Richard Mudgett
asteriskteam at digium.com
Wed Sep 6 13:40:01 CDT 2017
Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/6439
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/39/6439/1
diff --git a/res/stasis/control.c b/res/stasis/control.c
index 503f111..7356fe8 100644
--- a/res/stasis/control.c
+++ b/res/stasis/control.c
@@ -1133,10 +1133,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/6439
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0edb7dc0dbbb879c079ff7000f1b722d86ce7dc
Gerrit-Change-Number: 6439
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/7add5749/attachment.html>
More information about the asterisk-code-review
mailing list