]> granicus.if.org Git - curl/commit
imap: Fixed memory leak when performing multiple selects
authorSteve Holme <steve_holme@hotmail.com>
Fri, 22 Feb 2013 23:29:33 +0000 (23:29 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 22 Feb 2013 23:29:33 +0000 (23:29 +0000)
commit65644b833532a0cedc2c92ef1fd89c7f21a97906
tree079ef1705f5bbafc793747cf39826443c71ce3c7
parent6b7cf6c72d954e7645938698f758c0c624dd4438
imap: Fixed memory leak when performing multiple selects

Moved the clean-up of the mailbox variable from imap_disconnect() to
imap_done() as this variable is allocated in the do phase, yet would
have only been freed only once if multiple selects where preformed
on a single connection.
lib/imap.c