[Asterisk-code-review] res/res pjsip: Resources (udptl fd) are leaking for T.38 calls (asterisk[13])

Paulo Vicentini asteriskteam at digium.com
Wed Feb 13 07:41:57 CST 2019


Paulo Vicentini has uploaded this change for review. ( https://gerrit.asterisk.org/10994


Change subject: res/res_pjsip: Resources (udptl fd) are leaking for T.38 calls
......................................................................

res/res_pjsip: Resources (udptl fd) are leaking for T.38 calls

Fix unbalanced references for datastore t38_session_media

ASTERISK-28288

Change-Id: Id6dceceb06651b03f611bf33deb3061022fe5d0c
---
M res/res_pjsip_t38.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/94/10994/1

diff --git a/res/res_pjsip_t38.c b/res/res_pjsip_t38.c
index cd225d4..e1cc506 100644
--- a/res/res_pjsip_t38.c
+++ b/res/res_pjsip_t38.c
@@ -156,6 +156,7 @@
 		return NULL;
 	}
 
+	ao2_ref(datastore, -1);
 	datastore->data = session_media;
 	ao2_bump(session_media);
 	return datastore;

-- 
To view, visit https://gerrit.asterisk.org/10994
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6dceceb06651b03f611bf33deb3061022fe5d0c
Gerrit-Change-Number: 10994
Gerrit-PatchSet: 1
Gerrit-Owner: Paulo Vicentini <paulo.vicentini at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190213/4eca9f3a/attachment.html>


More information about the asterisk-code-review mailing list