diff options
Diffstat (limited to 'cli.c')
-rwxr-xr-x | cli.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -864,14 +864,12 @@ int ast_cli_generatornummatches(char *text, char *word) while ( (buf = ast_cli_generator(text, word, i)) ) { if (++i > 1 && strcmp(buf,oldbuf) == 0) { - free(buf); continue; } oldbuf = buf; matches++; } - free(oldbuf); - free(buf); + return matches; } |