[asterisk-commits] res pjsip session: Fix format cap leak. (asterisk[15])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 9 16:33:39 CDT 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6679 )

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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit



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/6679
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I2c8d3fc148f9f53715c958314e1146f9611741f3
Gerrit-Change-Number: 6679
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20171009/bcb2195e/attachment-0001.html>


More information about the asterisk-commits mailing list