diff --git a/main/cli.c b/main/cli.c index 56468148cf..58e0cef5a1 100644 --- a/main/cli.c +++ b/main/cli.c @@ -135,8 +135,8 @@ static char *complete_fn(const char *word, int state) c += (strlen(ast_config_AST_MODULE_DIR) + 1); if (c) c = ast_strdup(c); - if (d) - free(d); + + free(d); return c; }