From 2305c95db08a214dba68e771c9bbabc51ca7d055 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 23 Nov 2013 17:06:07 +0100 Subject: [PATCH] irc: fix memory leak when checking the value of ssl_priorities option in servers --- ChangeLog | 2 ++ src/plugins/irc/irc-config.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index ba4b7993d..45adb271b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * api: fix read of arrays in hdata functions hdata_ (bug #40354) * guile: disable guile gmp allocator (fix crash on unload of relay plugin) (bug #40628) +* irc: fix memory leak when checking the value of ssl_priorities option in + servers * irc: fix memory leak when a channel is deleted * irc: fix groups in channel nicklist when reconnecting to a server that supports more nick prefixes than the previously connected server diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index 298b06303..6ef46426a 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -978,6 +978,7 @@ irc_config_check_gnutls_priorities (const char *priorities) return NULL; rc = gnutls_priority_init (&priority_cache, priorities, &pos_error); + gnutls_priority_deinit (priority_cache); if (rc == GNUTLS_E_SUCCESS) return NULL; if (pos_error)