From: Terry Wilson Date: Thu, 25 Jun 2009 21:15:11 +0000 (+0000) Subject: Merged revisions 203380 via svnmerge from X-Git-Tag: 11.0.0-beta1~4607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef9b9e36d49676c49db455d076bcaed9c7c25280;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@203381 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index d8814f05c2..a822d1eb89 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; }