[asterisk-commits] oej: branch 1.2 r63195 - /branches/1.2/config.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 7 07:06:51 MST 2007


Author: oej
Date: Mon May  7 09:06:50 2007
New Revision: 63195

URL: http://svn.digium.com/view/asterisk?view=rev&rev=63195
Log:
Releasing the whole in-memory configuration while you're adding to it is not a good thing.

Please review this change. Caused by additions (+) to non-existing contexts.

Modified:
    branches/1.2/config.c

Modified: branches/1.2/config.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/config.c?view=diff&rev=63195&r1=63194&r2=63195
==============================================================================
--- branches/1.2/config.c (original)
+++ branches/1.2/config.c Mon May  7 09:06:50 2007
@@ -409,7 +409,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