summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c3
1 files changed, 2 insertions, 1 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);