diff options
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c index 72cd8152f..8813c6a3f 100644 --- a/main/cli.c +++ b/main/cli.c @@ -135,7 +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); - free(d); + if (d) + free(d); return c; } |