[svn-commits] mmichelson: branch 1.4 r202601 - /branches/1.4/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 23 10:22:39 CDT 2009


Author: mmichelson
Date: Tue Jun 23 10:22:35 2009
New Revision: 202601

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202601
Log:
Fix more memory leaks that may result if rtp is not successfully allocated.


Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=202601&r1=202600&r2=202601
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Jun 23 10:22:35 2009
@@ -4604,11 +4604,15 @@
 			if (p->rtp) {
 				ast_rtp_destroy(p->rtp);
 			}
+			if (p->udptl) {
+				ast_udptl_destroy(p->udptl);
+			}
 			ast_mutex_destroy(&p->lock);
 			if (p->chanvars) {
 				ast_variables_destroy(p->chanvars);
 				p->chanvars = NULL;
 			}
+			ast_string_field_free_memory(p);
 			free(p);
 			return NULL;
 		}




More information about the svn-commits mailing list