mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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:
1
cli.c
1
cli.c
@@ -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);
|
fullcmd = e->generator(text, word, (strlen(word) ? (x - 1) : (x)), state);
|
||||||
if (lock)
|
if (lock)
|
||||||
ast_mutex_unlock(&clilock);
|
ast_mutex_unlock(&clilock);
|
||||||
|
free(dup);
|
||||||
return fullcmd;
|
return fullcmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user