]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
I didn't see that Mark already fixed the underlying issue!
authorTerry Wilson <twilson@digium.com>
Thu, 25 Jun 2009 21:13:10 +0000 (21:13 +0000)
committerTerry Wilson <twilson@digium.com>
Thu, 25 Jun 2009 21:13:10 +0000 (21:13 +0000)
Yay for removing useless code.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@203380 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index d633f9cb6dfe796812299682f50d90f81f70eb67..fe39334c130d4c44651e83af75c847e3f115bbe3 100644 (file)
@@ -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;
 }