mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Eliminate several needless checks and fix a few memory leaks
(closes issue #14833) Reported by: contactmayankjain Patches: all_changes.patch uploaded by contactmayankjain (license 740) slightly modified by me git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -235,8 +235,7 @@ static char *complete_fn(const char *word, int state)
|
||||
c += (strlen(ast_config_AST_MODULE_DIR) + 1);
|
||||
if (c)
|
||||
c = ast_strdup(c);
|
||||
if (d)
|
||||
free(d);
|
||||
free(d);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
Reference in New Issue
Block a user