]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't remove configuration from memory just because one section failed.
authorOlle Johansson <oej@edvina.net>
Mon, 7 May 2007 20:05:15 +0000 (20:05 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 7 May 2007 20:05:15 +0000 (20:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@63254 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/config.c

index a96d1ae17f4ea5641f430e5613bdd053b5ba19be..845408861af0bbe9ae64ee7cfde9c28b99d36479 100644 (file)
@@ -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);