]> granicus.if.org Git - curl/commitdiff
free the allocated mailbox name at disconnect
authorDaniel Stenberg <daniel@haxx.se>
Sun, 20 Dec 2009 11:10:08 +0000 (11:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 20 Dec 2009 11:10:08 +0000 (11:10 +0000)
lib/imap.c

index 505a6ba21c183026a79ea76340bc9d8d9b777c00..50201e151bec60afee685a8963288956e2ad3b40 100644 (file)
@@ -889,6 +889,8 @@ static CURLcode imap_disconnect(struct connectdata *conn)
 
   Curl_pp_disconnect(&imapc->pp);
 
+  free(imapc->mailbox);
+
   return CURLE_OK;
 }