Don't try to free NULL

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@203311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2009-06-25 20:09:15 +00:00
parent 140d84dfc5
commit 03d3fb7a7a

View File

@@ -1289,7 +1289,9 @@ static char *complete_fn_3(const char *line, const char *word, int pos, int stat
c += (strlen(ast_config_AST_MODULE_DIR) + 1); c += (strlen(ast_config_AST_MODULE_DIR) + 1);
if (c) if (c)
c = strdup(c); c = strdup(c);
if (d) {
free(d); free(d);
}
return c; return c;
} }