diff --git a/main/asterisk.c b/main/asterisk.c index 40befc1cd1..e5e38d7251 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); }