Free some cli memory

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-04-08 05:28:53 +00:00
parent 6cde9d87a3
commit 0f2bcccaba

1
cli.c
View File

@@ -983,6 +983,7 @@ static char *__ast_cli_generator(char *text, char *word, int state, int lock)
fullcmd = e->generator(text, word, (strlen(word) ? (x - 1) : (x)), state);
if (lock)
ast_mutex_unlock(&clilock);
free(dup);
return fullcmd;
}