mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
Fix 14 memory leaks (in core, gui, irc, jabber, logger, script plugins)
This commit is contained in:
@@ -1637,8 +1637,12 @@ unhook (struct t_hook *hook)
|
||||
free ((struct t_hook_fd *)hook->hook_data);
|
||||
break;
|
||||
case HOOK_TYPE_CONNECT:
|
||||
if (HOOK_CONNECT(hook, proxy))
|
||||
free (HOOK_CONNECT(hook, proxy));
|
||||
if (HOOK_CONNECT(hook, address))
|
||||
free (HOOK_CONNECT(hook, address));
|
||||
if (HOOK_CONNECT(hook, local_hostname))
|
||||
free (HOOK_CONNECT(hook, local_hostname));
|
||||
if (HOOK_CONNECT(hook, hook_fd))
|
||||
unhook (HOOK_CONNECT(hook, hook_fd));
|
||||
if (HOOK_CONNECT(hook, child_pid) > 0)
|
||||
|
||||
Reference in New Issue
Block a user