1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

core: fix memory leak in unhook of hook_connect

This commit is contained in:
Sebastien Helleu
2011-08-25 20:22:44 +02:00
parent 8d20b217d4
commit c356b16322
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ v0.3.6-dev, 2011-08-25
Version 0.3.6 (under dev!)
--------------------------
* core: fix memory leak in unhook of hook_connect
* core: fix memory leak in display of empty bar items
* core: fix input of wide UTF-8 chars under Cygwin (bug #34061)
* core: allow name of buffer for command /buffer clear (task #11269)
+4
View File
@@ -3073,6 +3073,10 @@ unhook (struct t_hook *hook)
free (HOOK_CONNECT(hook, proxy));
if (HOOK_CONNECT(hook, address))
free (HOOK_CONNECT(hook, address));
#ifdef HAVE_GNUTLS
if (HOOK_CONNECT(hook, gnutls_priorities))
free (HOOK_CONNECT(hook, gnutls_priorities));
#endif
if (HOOK_CONNECT(hook, local_hostname))
free (HOOK_CONNECT(hook, local_hostname));
if (HOOK_CONNECT(hook, hook_fd))