aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-12-20 11:10:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-12-20 11:10:08 +0000
commit6add5baa3a1fb8de3116e3ead982fa61e0943b91 (patch)
tree69924d4950a27b0140a4aabb17fb0f4206d66b07
parent2a3dafc0cdb7f65c19835a1246623186a05073a8 (diff)
free the allocated mailbox name at disconnect
-rw-r--r--lib/imap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 505a6ba21..50201e151 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -889,6 +889,8 @@ static CURLcode imap_disconnect(struct connectdata *conn)
Curl_pp_disconnect(&imapc->pp);
+ free(imapc->mailbox);
+
return CURLE_OK;
}