diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-04 14:12:46 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-04 14:12:46 +0100 |
commit | 7cc562be45c781c085a8a4e9515ad527d327a2ef (patch) | |
tree | b68e4722b07949b8c55d4ee4935b574aa178272e /src/core/wee-hook.c | |
parent | aeb11f7e05ede4453552a1fac6895da6e8f6084f (diff) | |
download | weechat-7cc562be45c781c085a8a4e9515ad527d327a2ef.zip |
Fix 14 memory leaks (in core, gui, irc, jabber, logger, script plugins)
Diffstat (limited to 'src/core/wee-hook.c')
-rw-r--r-- | src/core/wee-hook.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 39c8fbdc2..3d8deec35 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -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) |