diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-05-27 08:37:05 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-05-27 08:37:05 +0200 |
commit | a603c5e47632cbe71bbeff1bcfecd5614b789727 (patch) | |
tree | f0c1061f22b35ca28204b62a5a4e12e227c856da | |
parent | b9fdcb01933512529b13a5e2adba78d6f0a54975 (diff) | |
download | weechat-a603c5e47632cbe71bbeff1bcfecd5614b789727.zip |
irc: fix memory leak in case of error in "ecdsa-nist256p-challenge" SASL mechanism
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | src/plugins/irc/irc-sasl.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index a34eb312b..4ef3cb5c8 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -32,6 +32,7 @@ Bug fixes:: * buflist: fix slow switch of buffer when there are a lot of buffers opened (issue #998) * buflist: add option "bar" in command /buflist, do not automatically add the "buflist" bar when the option buflist.look.enabled is off (issue #994) * buflist: fix crash on drag & drop of buffers + * irc: fix memory leak in case of error in "ecdsa-nist256p-challenge" SASL mechanism * relay: fix parsing of CAP command arguments in irc protocol (issue #995) [[v1.8]] diff --git a/src/plugins/irc/irc-sasl.c b/src/plugins/irc/irc-sasl.c index c4b3c3f45..3518cb98e 100644 --- a/src/plugins/irc/irc-sasl.c +++ b/src/plugins/irc/irc-sasl.c @@ -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 */ |