mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865)
This commit is contained in:
@@ -635,8 +635,7 @@ exec_free (struct t_exec_cmd *exec_cmd)
|
||||
last_exec_cmd = exec_cmd->prev_cmd;
|
||||
|
||||
/* free data */
|
||||
if (exec_cmd->hook)
|
||||
weechat_unhook (exec_cmd->hook);
|
||||
weechat_unhook (exec_cmd->hook);
|
||||
free (exec_cmd->name);
|
||||
free (exec_cmd->command);
|
||||
free (exec_cmd->buffer_full_name);
|
||||
|
||||
Reference in New Issue
Block a user