mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 12:12:48 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user