From 05c31108a5022e529c5feb40a2d59e41ac55c110 Mon Sep 17 00:00:00 2001 From: Richard Mudgett <rmudgett@digium.com> Date: Wed, 20 Aug 2014 22:17:44 +0000 Subject: [PATCH] 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@421602 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/cli.c b/main/cli.c index 1fed5282e4..e1cb3b0ecb 100644 --- a/main/cli.c +++ b/main/cli.c @@ -227,7 +227,7 @@ static char *complete_fn(const char *word, int state) if (c) c = ast_strdup(c); - free(d); + ast_std_free(d); return c; } -- GitLab