aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pop3.c b/pop3.c
index 9eae1441..a325496c 100644
--- a/pop3.c
+++ b/pop3.c
@@ -630,6 +630,12 @@ static int pop3_logout(int sock, struct query *ctl)
if (!ok)
expunge_uids(ctl);
+ if (ctl->lastid)
+ {
+ free(ctl->lastid);
+ ctl->lastid = NULL;
+ }
+
return(ok);
}