aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-11-27 02:53:05 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-11-27 02:53:05 +0000
commit47de570ed19b05a1b9c353c5417904bf8b865969 (patch)
treee469b7c48264acf95b4ffeb253df25f084aa8381
parentd173fbd70a1460eca0066aab49893d3407e1c079 (diff)
downloadfetchmail-47de570ed19b05a1b9c353c5417904bf8b865969.tar.gz
fetchmail-47de570ed19b05a1b9c353c5417904bf8b865969.tar.bz2
fetchmail-47de570ed19b05a1b9c353c5417904bf8b865969.zip
Plug a tiny memory leak when recovering from TLS-related socket errors.
svn path=/branches/BRANCH_6-3/; revision=4969
-rw-r--r--pop3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pop3.c b/pop3.c
index 961692a5..65055ac8 100644
--- a/pop3.c
+++ b/pop3.c
@@ -600,6 +600,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
* don't! */
if (connection_may_have_tls_errors && ok == PS_SOCKET)
{
+ xfree(ctl->sslproto);
ctl->sslproto = xstrdup("");
/* repoll immediately without TLS */
ok = PS_REPOLL;