[asterisk-commits] mjordan: trunk r374086 - in /trunk: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 28 22:56:53 CDT 2012


Author: mjordan
Date: Fri Sep 28 22:56:49 2012
New Revision: 374086

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374086
Log:
Fix ref leak when adding ICE candidates to an SDP

There was a missing decrement to the reference count for the current ICE
candidate when local candidates are being added to an outbound SDP.  This
patch corrects that.
........

Merged revisions 374085 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=374086&r1=374085&r2=374086
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Sep 28 22:56:49 2012
@@ -12226,6 +12226,7 @@
 		}
 
 		ast_str_append(a_buf, 0, "\r\n");
+		ao2_ref(candidate, -1);
 	}
 
 	ao2_iterator_destroy(&i);




More information about the asterisk-commits mailing list