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
} 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);