From 3814caadad9756cd4ef83458784cafcf0679b787 Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Thu, 25 Jun 2009 20:25:39 +0000 Subject: [PATCH] Merged revisions 203311 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r203311 | twilson | 2009-06-25 15:09:15 -0500 (Thu, 25 Jun 2009) | 2 lines Don't try to free NULL ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@203338 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/cli.c b/main/cli.c index d1d4bb3a29..d8814f05c2 100644 --- a/main/cli.c +++ b/main/cli.c @@ -235,7 +235,9 @@ static char *complete_fn(const char *word, int state) c += (strlen(ast_config_AST_MODULE_DIR) + 1); if (c) c = ast_strdup(c); - free(d); + if (d) { + free(d); + } return c; }