aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 40befc1cd..e5e38d725 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -2037,6 +2037,8 @@ static char *cli_complete(EditLine *el, int ch)
retval = CC_REFRESH;
}
}
+ for (i = 0; matches[i]; i++)
+ free(matches[i]);
free(matches);
}