From: Terry Wilson Date: Thu, 25 Jun 2009 21:13:10 +0000 (+0000) Subject: I didn't see that Mark already fixed the underlying issue! X-Git-Tag: 1.4.26~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e3e234df6a766b75fada92a973acc82b6292531;p=thirdparty%2Fasterisk.git 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/branches/1.4@203380 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index d633f9cb6d..fe39334c13 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1289,9 +1289,8 @@ static char *complete_fn_3(const char *line, const char *word, int pos, int stat c += (strlen(ast_config_AST_MODULE_DIR) + 1); if (c) c = strdup(c); - if (d) { - free(d); - } + + free(d); return c; }