diff options
-rw-r--r-- | main/cli.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/cli.c b/main/cli.c index d8814f05c..a822d1eb8 100644 --- a/main/cli.c +++ b/main/cli.c @@ -235,9 +235,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; } |