summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-25 20:22:44 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-25 20:22:44 +0200
commitc356b16322fc6d70d8e002796984e57dc5a20d8e (patch)
tree170cdd52041dba078f244c85869feb4c9489c41c /src/core
parent8d20b217d422de84ac29f627dfc0eba7c27a9f99 (diff)
downloadweechat-c356b16322fc6d70d8e002796984e57dc5a20d8e.zip
core: fix memory leak in unhook of hook_connect
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index 99f33230e..0e42cb8c1 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -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))