From 26392ebfd86ea7504aa155b925892439dc098522 Mon Sep 17 00:00:00 2001 From: oej Date: Mon, 7 May 2007 20:05:15 +0000 Subject: Don't remove configuration from memory just because one section failed. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63254 f38db490-d61c-443f-a65b-d21fe96a405b --- main/config.c | 1 - 1 file changed, 1 deletion(-) (limited to 'main/config.c') diff --git a/main/config.c b/main/config.c index a96d1ae17..845408861 100644 --- a/main/config.c +++ b/main/config.c @@ -630,7 +630,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