Loading CHANGES +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ Changelog Daniel Fandrich (25 Feb 2010) - Fixed a couple of out of memory leaks and a segfault in the SMTP code. - Fixed a couple of out of memory leaks and a segfault in the SMTP & IMAP code. Yang Tse (25 Feb 2010) - I fixed bug report #2958074 indicating Loading lib/imap.c +5 −2 Original line number Diff line number Diff line Loading @@ -885,11 +885,12 @@ static CURLcode imap_disconnect(struct connectdata *conn) /* The IMAP session may or may not have been allocated/setup at this point! */ if (imapc->pp.conn) (void)imap_logout(conn); /* ignore errors on the LOGOUT */ Curl_pp_disconnect(&imapc->pp); free(imapc->mailbox); Curl_safefree(imapc->mailbox); return CURLE_OK; } Loading @@ -914,6 +915,8 @@ static CURLcode imap_parse_url_path(struct connectdata *conn) /* url decode the path and use this mailbox */ imapc->mailbox = curl_easy_unescape(data, path, 0, &len); if(!imapc->mailbox) return CURLE_OUT_OF_MEMORY; return CURLE_OK; } Loading Loading
CHANGES +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ Changelog Daniel Fandrich (25 Feb 2010) - Fixed a couple of out of memory leaks and a segfault in the SMTP code. - Fixed a couple of out of memory leaks and a segfault in the SMTP & IMAP code. Yang Tse (25 Feb 2010) - I fixed bug report #2958074 indicating Loading
lib/imap.c +5 −2 Original line number Diff line number Diff line Loading @@ -885,11 +885,12 @@ static CURLcode imap_disconnect(struct connectdata *conn) /* The IMAP session may or may not have been allocated/setup at this point! */ if (imapc->pp.conn) (void)imap_logout(conn); /* ignore errors on the LOGOUT */ Curl_pp_disconnect(&imapc->pp); free(imapc->mailbox); Curl_safefree(imapc->mailbox); return CURLE_OK; } Loading @@ -914,6 +915,8 @@ static CURLcode imap_parse_url_path(struct connectdata *conn) /* url decode the path and use this mailbox */ imapc->mailbox = curl_easy_unescape(data, path, 0, &len); if(!imapc->mailbox) return CURLE_OUT_OF_MEMORY; return CURLE_OK; } Loading