From ab526502e6fbca26fc049d6a983620239f8ddb9c Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Wed, 20 Aug 2014 22:21:43 +0000 Subject: cli.c: Fix tab completion of "module load" when MALLOC_DEBUG is enabled. filename_completion_function() returns memory that was not allocated by the MALLOC_DEBUG allocation tracker so the memory must be freed by ast_std_free(). ........ Merged revisions 421600 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 421602 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 421608 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@421616 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/cli.c') diff --git a/main/cli.c b/main/cli.c index b7e5c1586..7aa5022f7 100644 --- a/main/cli.c +++ b/main/cli.c @@ -239,7 +239,7 @@ static char *complete_fn(const char *word, int state) if (c) c = ast_strdup(c); - free(d); + ast_std_free(d); return c; } -- cgit v1.2.3