diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-07 14:06:50 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-07 14:06:50 +0000 |
commit | 3c4a8564079c294e0fb47d8387ed95844e5d4770 (patch) | |
tree | fc349c77f1d3fd7992fb52a64a26ed98a90f16d2 | |
parent | a8f62ca4cb8ed15486490c4eb9bd7fb091cf828c (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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |