diff --git a/main/cli.c b/main/cli.c index 2e26f96bb4..e431cb80a7 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; }