From 5e3e234df6a766b75fada92a973acc82b6292531 Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Thu, 25 Jun 2009 21:13:10 +0000 Subject: [PATCH] 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 --- main/cli.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }