[asterisk-commits] mmichelson: trunk r377973 - /trunk/res/res_clialiases.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 13 09:37:47 CST 2012


Author: mmichelson
Date: Thu Dec 13 09:37:45 2012
New Revision: 377973

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377973
Log:
The UUID commit removed changes made in res_clialiases.c

This puts back in the changes that are designed to work
around a memory leak fix in the CLI code.


Modified:
    trunk/res/res_clialiases.c

Modified: trunk/res/res_clialiases.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_clialiases.c?view=diff&rev=377973&r1=377972&r2=377973
==============================================================================
--- trunk/res/res_clialiases.c (original)
+++ trunk/res/res_clialiases.c Thu Dec 13 09:37:45 2012
@@ -218,7 +218,10 @@
 			alias->cli_entry.command = alias->alias;
 			alias->cli_entry.usage = "Aliased CLI Command\n";
 
-			ast_cli_register(&alias->cli_entry);
+			if (ast_cli_register(&alias->cli_entry)) {
+				ao2_ref(alias, -1);
+				continue;
+			}
 			ao2_link(cli_aliases, alias);
 			ast_verb(2, "Aliased CLI command '%s' to '%s'\n", v1->name, v1->value);
 			ao2_ref(alias, -1);




More information about the asterisk-commits mailing list