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().


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@421600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2014-08-20 22:13:44 +00:00
parent 0b36c21dfd
commit f92b7fe87d

View File

@@ -241,7 +241,7 @@ static char *complete_fn(const char *word, int state)
if (c)
c = ast_strdup(c);
free(d);
ast_std_free(d);
return c;
}