[asterisk-commits] rmudgett: trunk r190797 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 27 16:22:21 CDT 2009


Author: rmudgett
Date: Mon Apr 27 16:22:17 2009
New Revision: 190797

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190797
Log:
Fix a small memory leak on error in ast_channel_alloc().

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/channel.c?view=diff&rev=190797&r1=190796&r2=190797
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Mon Apr 27 16:22:17 2009
@@ -855,6 +855,8 @@
 
 			sched_context_destroy(tmp->sched);
 			ast_string_field_free_memory(tmp);
+			ast_free(tmp->cid.cid_name);
+			ast_free(tmp->cid.cid_num);
 			ast_free(tmp);
 			return NULL;
 		} else {




More information about the asterisk-commits mailing list