]> Pileus Git - ~andy/fetchmail/commitdiff
Plug a tiny memory leak when recovering from TLS-related socket errors.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 27 Nov 2006 02:53:05 +0000 (02:53 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Mon, 27 Nov 2006 02:53:05 +0000 (02:53 -0000)
svn path=/branches/BRANCH_6-3/; revision=4969

pop3.c

diff --git a/pop3.c b/pop3.c
index 961692a5336f0fa0ad87fa571adfdeb8830169f7..65055ac8eb7b8a0eb9f43544fc87314bf093f47a 100644 (file)
--- 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;