aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-07 14:06:50 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-07 14:06:50 +0000
commit3c4a8564079c294e0fb47d8387ed95844e5d4770 (patch)
treefc349c77f1d3fd7992fb52a64a26ed98a90f16d2
parenta8f62ca4cb8ed15486490c4eb9bd7fb091cf828c (diff)
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. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@63195 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--config.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.c b/config.c
index 89c5c499d..5136db92d 100644
--- a/config.c
+++ b/config.c
@@ -409,7 +409,6 @@ static int process_text_line(struct ast_config *cfg, struct ast_category **cat,
} 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);