summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-sasl.c3
1 files changed, 3 insertions, 0 deletions
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 */