diff options
author | Kevin Harwell <kharwell@digium.com> | 2016-03-18 14:31:12 -0500 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2016-03-18 15:09:30 -0500 |
commit | 6a40520fe9c4b5a00d8de425b18163cc5aefe8d0 (patch) | |
tree | d47cd98b96d47439a52d921ef86bf1fd28aed600 | |
parent | 9444ddadf8525d1ce66a1faf1db97f9f6c265ca4 (diff) |
chan_pjsip: ref leak when checking direct_media_glare
Fix the reference leak introduced in the following commit:
9444ddadf8525d1ce66a1faf1db97f9f6c265ca4
ASTERISK-25849
Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
-rw-r--r-- | channels/chan_pjsip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index 16f042622..07887afd8 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; } |