[Asterisk-code-review] res pjsip session: Fix format cap leak. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Sat Oct 7 16:29:07 CDT 2017


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/6678


Change subject: res_pjsip_session: Fix format_cap leak.
......................................................................

res_pjsip_session: Fix format_cap leak.

ASTERISK-27306

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



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/78/6678/1

diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 70c88a5..a666658 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -1547,6 +1547,7 @@
 						}
 					}
 					ast_stream_set_formats(stream, joint_cap);
+					ao2_cleanup(joint_cap);
 				}
 
 				++type_streams[ast_stream_get_type(stream)];

-- 
To view, visit https://gerrit.asterisk.org/6678
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2c8d3fc148f9f53715c958314e1146f9611741f3
Gerrit-Change-Number: 6678
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171007/be7d17e6/attachment.html>


More information about the asterisk-code-review mailing list