CURLcode result = CURLE_OK;
struct SessionHandle *data = conn->data;
struct FTP *imap = data->state.proto.imap;
+ struct imap_conn *imapc= &conn->proto.imapc;
(void)premature;
result = status; /* use the already set error code */
}
+ /* Cleanup our per-request based variables */
+ Curl_safefree(imapc->mailbox);
+
/* Clear the transfer mode for the next connection */
imap->transfer = FTPTRANSFER_BODY;
/* Cleanup the SASL module */
Curl_sasl_cleanup(conn, imapc->authused);
- /* Cleanup our connection based variables */
- Curl_safefree(imapc->mailbox);
-
return CURLE_OK;
}