1
0
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:
Sebastien Helleu
2009-02-04 14:12:46 +01:00
parent aeb11f7e05
commit 7cc562be45
11 changed files with 33 additions and 12 deletions
+4
View File
@@ -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)