diff options
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c index ef3ce6d19..d633f9cb6 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1289,7 +1289,9 @@ static char *complete_fn_3(const char *line, const char *word, int pos, int stat c += (strlen(ast_config_AST_MODULE_DIR) + 1); if (c) c = strdup(c); - free(d); + if (d) { + free(d); + } return c; } |