From d48b05d8ab16008c2e07c3f295f6ae1c77ab71bd Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sun, 9 Nov 2003 20:31:54 +0000 Subject: Back out "leak" fixes, as it causes segfaults git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1713 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- cli.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index 544ead830..ae6876fad 100755 --- a/cli.c +++ b/cli.c @@ -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; } -- cgit v1.2.3