[asterisk-commits] oej: branch 1.4 r63254 - /branches/1.4/main/config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 7 13:05:15 MST 2007


Author: oej
Date: Mon May  7 15:05:15 2007
New Revision: 63254

URL: http://svn.digium.com/view/asterisk?view=rev&rev=63254
Log:
Don't remove configuration from memory just because one section failed.

Modified:
    branches/1.4/main/config.c

Modified: branches/1.4/main/config.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/config.c?view=diff&rev=63254&r1=63253&r2=63254
==============================================================================
--- branches/1.4/main/config.c (original)
+++ branches/1.4/main/config.c Mon May  7 15:05:15 2007
@@ -630,7 +630,6 @@
 				} else if (!strcasecmp(cur, "+")) {
 					*cat = category_get(cfg, catname, 1);
 					if (!(*cat)) {
-						ast_config_destroy(cfg);
 						if (newcat)
 							ast_category_destroy(newcat);
 						ast_log(LOG_WARNING, "Category addition requested, but category '%s' does not exist, line %d of %s\n", catname, lineno, configfile);



More information about the asterisk-commits mailing list