diff options
Diffstat (limited to 'config.c')
-rwxr-xr-x | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -394,7 +394,7 @@ 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_destroy(cfg); + 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); |