aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-25 21:15:11 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-25 21:15:11 +0000
commitc17828979c9f048a020ffcf4f23ca2a3d3a9638c (patch)
tree148f59adec7245e523d814b22e64f3c010aac725 /main/cli.c
parent57836c843fd0ea5b4d4b491ea3871a03c2c0b86c (diff)
Merged revisions 203380 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r203380 | twilson | 2009-06-25 16:13:10 -0500 (Thu, 25 Jun 2009) | 4 lines I didn't see that Mark already fixed the underlying issue! Yay for removing useless code. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@203381 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c5
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;
}