aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpbx.c3
-rwxr-xr-xpbx/pbx_config.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 106091d27..30e3d1f3c 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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;