From 3c4a8564079c294e0fb47d8387ed95844e5d4770 Mon Sep 17 00:00:00 2001 From: oej Date: Mon, 7 May 2007 14:06:50 +0000 Subject: 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 --- config.c | 1 - 1 file changed, 1 deletion(-) 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); -- cgit v1.2.3