[Asterisk-code-review] chan pjsip: ref leak when checking direct media glare (asterisk[13])
Kevin Harwell
asteriskteam at digium.com
Fri Mar 18 14:35:37 CDT 2016
Kevin Harwell has uploaded a new change for review.
https://gerrit.asterisk.org/2436
Change subject: chan_pjsip: ref leak when checking direct_media_glare
......................................................................
chan_pjsip: ref leak when checking direct_media_glare
Fix the reference leak introduced in the following commit:
c534bd58075e2e1a1e4f3b23c435186c71b155fd
Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
---
M channels/chan_pjsip.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/36/2436/1
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 16f0426..07887af 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -348,6 +348,7 @@
if (direct_media_mitigate_glare(cdata->session)) {
ast_debug(4, "Disregarding setting RTP on %s: mitigating re-INVITE glare\n", ast_channel_name(cdata->chan));
+ ao2_ref(cdata, -1);
return 0;
}
--
To view, visit https://gerrit.asterisk.org/2436
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
More information about the asterisk-code-review
mailing list