Back out "leak" fixes, as it causes segfaults

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-11-09 20:31:54 +00:00
parent 9f110a3b81
commit d48b05d8ab
2 changed files with 1 additions and 8 deletions

4
cli.c
View File

@@ -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;
}