[asterisk-commits] mmichelson: branch group/CCSS r224771 - /team/group/CCSS/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 20 09:55:25 CDT 2009


Author: mmichelson
Date: Tue Oct 20 09:55:20 2009
New Revision: 224771

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=224771
Log:
Fix potential memory leak.


Modified:
    team/group/CCSS/main/channel.c

Modified: team/group/CCSS/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/channel.c?view=diff&rev=224771&r1=224770&r2=224771
==============================================================================
--- team/group/CCSS/main/channel.c (original)
+++ team/group/CCSS/main/channel.c Tue Oct 20 09:55:20 2009
@@ -7243,6 +7243,7 @@
 
 	if (ast_cc_monitor_count(chan_name, monitor_type) >= ast_get_cc_max_monitors(ast_channel_get_cc_config_params(chan))) {
 		ast_log(LOG_NOTICE, "Not queuing a CC frame for channel %s since it already has its maximum monitors allocated\n", chan_name);
+		ast_free(payload);
 		return 0;
 	}
 




More information about the asterisk-commits mailing list