[asterisk-commits] mjordan: branch 11 r374085 - /branches/11/channels/chan_sip.c

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


Author: mjordan
Date: Fri Sep 28 22:54:15 2012
New Revision: 374085

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374085
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.


Modified:
    branches/11/channels/chan_sip.c

Modified: branches/11/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_sip.c?view=diff&rev=374085&r1=374084&r2=374085
==============================================================================
--- branches/11/channels/chan_sip.c (original)
+++ branches/11/channels/chan_sip.c Fri Sep 28 22:54:15 2012
@@ -12198,6 +12198,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