Fix some comments in pbx.c and pbx_config.c
authorJames Golovich <james@gnuinter.net>
Mon, 23 Feb 2004 05:37:24 +0000 (05:37 +0000)
committerJames Golovich <james@gnuinter.net>
Mon, 23 Feb 2004 05:37:24 +0000 (05:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2223 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c
pbx/pbx_config.c

diff --git a/pbx.c b/pbx.c
index 106091d..30e3d1f 100755 (executable)
--- 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(tmpil);
                        }
                        for (ipi = tmp->ignorepats; ipi; ) {
-                               /* Free includes */
+                               /* Free ignorepats */
                                ipl = ipi;
                                ipi = ipi->next;
                                free(ipl);
                        }
                        for (sw = tmp->alts; sw; ) {
                                ipl = ipi;
                                ipi = ipi->next;
                                free(ipl);
                        }
                        for (sw = tmp->alts; sw; ) {
+                               /* Free switches */
                                swl = sw;
                                sw = sw->next;
                                free(swl);
                                swl = sw;
                                sw = sw->next;
                                free(swl);
index e017be7..be87fff 100755 (executable)
@@ -1576,7 +1576,7 @@ static int pbx_load_module(void)
                }
                cxt = ast_category_browse(cfg, NULL);
                while(cxt) {
                }
                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;
                        if (!strcasecmp(cxt, "general") || !strcasecmp(cxt, "globals")) {
                                cxt = ast_category_browse(cfg, cxt);
                                continue;