summaryrefslogtreecommitdiff
path: root/channels/chan_pjsip.c
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2016-03-18 14:31:12 -0500
committerKevin Harwell <kharwell@digium.com>2016-03-18 15:09:39 -0500
commita3c9a74a02014986181ce46bcecb74154ae9eb01 (patch)
treeaee1e424156c25b691bedb2553343936e5eccb7d /channels/chan_pjsip.c
parent4aaf8f2ace38346db10289be867195e6a2a5d96c (diff)
chan_pjsip: ref leak when checking direct_media_glare
Fix the reference leak introduced in the following commit: c534bd58075e2e1a1e4f3b23c435186c71b155fd ASTERISK-25849 Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
Diffstat (limited to 'channels/chan_pjsip.c')
-rw-r--r--channels/chan_pjsip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 729f453f9..cd55400c3 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -348,6 +348,7 @@ static int send_direct_media_request(void *data)
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;
}