mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
alias: remove check of NULL pointers before calling free() (issue #865)
This commit is contained in:
@@ -221,8 +221,7 @@ alias_command_cb (const void *pointer, void *data,
|
||||
if (ptr_option)
|
||||
weechat_config_option_free (ptr_option);
|
||||
weechat_printf (NULL, _("Alias \"%s\" removed"), name);
|
||||
if (name)
|
||||
free (name);
|
||||
free (name);
|
||||
}
|
||||
ptr_alias = ptr_next_alias;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user