From: Kevin Harwell Date: Fri, 18 Mar 2016 19:31:12 +0000 (-0500) Subject: chan_pjsip: ref leak when checking direct_media_glare X-Git-Tag: 13.8.0-rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a40520fe9c4b5a00d8de425b18163cc5aefe8d0;p=thirdparty%2Fasterisk.git chan_pjsip: ref leak when checking direct_media_glare Fix the reference leak introduced in the following commit: 9444ddadf8525d1ce66a1faf1db97f9f6c265ca4 ASTERISK-25849 Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85 --- diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index 16f0426223..07887afd85 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; }