[asterisk-commits] russell: trunk r173848 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 6 04:25:09 CST 2009


Author: russell
Date: Fri Feb  6 04:25:09 2009
New Revision: 173848

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=173848
Log:
Resolve a memory leak that would occur on an invalid channel given to Action: Status

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/manager.c?view=diff&rev=173848&r1=173847&r2=173848
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Fri Feb  6 04:25:09 2009
@@ -1862,6 +1862,7 @@
 		c = ast_get_channel_by_name_locked(name);
 		if (!c) {
 			astman_send_error(s, m, "No such channel");
+			ast_free(str);
 			return 0;
 		}
 	}




More information about the asterisk-commits mailing list