diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-09 20:31:54 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-09 20:31:54 +0000 |
commit | 66a4e3b2cd0c788c74cd7a359d45242360b26e6b (patch) | |
tree | 9fa6542ab8523c4ddd39c2b76ef3c6e29fa435f4 /cli.c | |
parent | 91a86e54c5c92c3240d926214fb493f71a154dae (diff) |
Back out "leak" fixes, as it causes segfaults
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1713 f38db490-d61c-443f-a65b-d21fe96a405b
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; } |