1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

irc: fix memory leak in case of error in "ecdsa-nist256p-challenge" SASL mechanism

This commit is contained in:
Sébastien Helleu
2017-05-27 08:37:05 +02:00
parent b9fdcb0193
commit a603c5e476
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -294,6 +294,9 @@ irc_sasl_mechanism_ecdsa_nist256p_challenge (struct t_irc_server *server,
free (string);
}
if (string)
free (string);
return answer_base64;
#else /* no gnutls or gnutls < 3.0.21 */