1
0
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:
Sébastien Helleu
2024-04-24 23:12:05 +02:00
parent 4baf0e8526
commit c242c8e3f9
2 changed files with 10 additions and 18 deletions
+1 -2
View File
@@ -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;
}