diff options
-rwxr-xr-x | pbx.c | 3 | ||||
-rwxr-xr-x | pbx/pbx_config.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -4096,12 +4096,13 @@ void __ast_context_destroy(struct ast_context *con, char *registrar, int lock) free(tmpil); } for (ipi = tmp->ignorepats; ipi; ) { - /* Free includes */ + /* Free ignorepats */ ipl = ipi; ipi = ipi->next; free(ipl); } for (sw = tmp->alts; sw; ) { + /* Free switches */ swl = sw; sw = sw->next; free(swl); diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index e017be79c..be87fff1c 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1576,7 +1576,7 @@ static int pbx_load_module(void) } cxt = ast_category_browse(cfg, NULL); while(cxt) { - /* All categories but "general" are considered contexts */ + /* All categories but "general" or "globals" are considered contexts */ if (!strcasecmp(cxt, "general") || !strcasecmp(cxt, "globals")) { cxt = ast_category_browse(cfg, cxt); continue; |