mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
irc: fix memory leak when checking the value of ssl_priorities option in servers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user