mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 03:02:15 +00:00
chan_pjsip: ref leak when checking direct_media_glare
Fix the reference leak introduced in the following commit:
9444ddadf8
ASTERISK-25849
Change-Id: I5cfefd5ee6c1c3a1715c050330aaa10e4d2a5e85
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user