[asterisk-commits] chan pjsip: ref leak when checking direct media glare (asterisk[master])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 21 10:10:13 CDT 2016


Joshua Colp has submitted this change and it was merged.

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

ASTERISK-25849

Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
---
M channels/chan_pjsip.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved
  Matthew Fredrickson: Looks good to me, but someone else must approve



diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 729f453..cd55400 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/2435
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matthew Fredrickson <creslin at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-commits mailing list