From: Olle Johansson Date: Mon, 7 May 2007 14:06:50 +0000 (+0000) Subject: Releasing the whole in-memory configuration while you're adding to it is not a good... X-Git-Tag: 1.2.19~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=999633ab4fcfbf25e51bb8cef188546453b2d6f3;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.2@63195 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/config.c b/config.c index 89c5c499dd..5136db92df 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);