aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli.c')
-rwxr-xr-xcli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli.c b/cli.c
index b29ddeb9a..80bcd73a6 100755
--- a/cli.c
+++ b/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);
if (lock)
ast_mutex_unlock(&clilock);
+ free(dup);
return fullcmd;
}