chan_pjsip: ref leak when checking direct_media_glare

Fix the reference leak introduced in the following commit:

c534bd5807

ASTERISK-25849

Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
changes/35/2435/2
Kevin Harwell 10 years ago
parent 4aaf8f2ace
commit a3c9a74a02

@ -348,6 +348,7 @@ static int send_direct_media_request(void *data)
if (direct_media_mitigate_glare(cdata->session)) { 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)); ast_debug(4, "Disregarding setting RTP on %s: mitigating re-INVITE glare\n", ast_channel_name(cdata->chan));
ao2_ref(cdata, -1);
return 0; return 0;
} }

Loading…
Cancel
Save