mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
core: remove check of NULL pointers before calling free() (issue #865)
This commit is contained in:
@@ -177,14 +177,10 @@ hook_process_hashtable (struct t_weechat_plugin *plugin,
|
||||
return new_hook;
|
||||
|
||||
error:
|
||||
if (stdout_buffer)
|
||||
free (stdout_buffer);
|
||||
if (stderr_buffer)
|
||||
free (stderr_buffer);
|
||||
if (new_hook)
|
||||
free (new_hook);
|
||||
if (new_hook_process)
|
||||
free (new_hook_process);
|
||||
free (stdout_buffer);
|
||||
free (stderr_buffer);
|
||||
free (new_hook);
|
||||
free (new_hook_process);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user