diff options
-rw-r--r-- | asterisk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/asterisk.c b/asterisk.c index bc15eb5c7..d3b3989de 100644 --- a/asterisk.c +++ b/asterisk.c @@ -1656,7 +1656,9 @@ static char *cli_complete(EditLine *el, int ch) retval = CC_REFRESH; } } - free(matches); + for (i=0; matches[i]; i++) + free(matches[i]); + free(matches); } return (char *)(long)retval; |