[svn-commits] dvossel: trunk r225650 - /trunk/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Oct 23 09:41:54 CDT 2009


Author: dvossel
Date: Fri Oct 23 09:41:50 2009
New Revision: 225650

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=225650
Log:
Fixes an iterator memory leak and uninitialized memory


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=225650&r1=225649&r2=225650
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Oct 23 09:41:50 2009
@@ -14980,6 +14980,7 @@
 			(th->tcptls_session->client ? "Client" : "Server"));
 		ao2_t_ref(th, -1, "decrement ref from iterator");
 	}
+	ao2_iterator_destroy(&i);
 
 	return CLI_SUCCESS;
 #undef FORMAT
@@ -22934,7 +22935,7 @@
 {
 	struct sip_socket *s = &p->socket;
 	static const char name[] = "SIP socket";
-	struct sip_threadinfo *th;
+	struct sip_threadinfo *th = NULL;
 	struct ast_tcptls_session_instance *tcptls_session;
 	struct ast_tcptls_session_args tmp_ca = {
 		.name = name,




More information about the svn-commits mailing list