diff options
author | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2015-06-21 14:46:01 -0700 |
---|---|---|
committer | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2015-06-21 14:46:01 -0700 |
commit | 7a719a84ba14c9e9c0f05ecbf5d663c02b21c403 (patch) | |
tree | 2f8d17f8c2dcb37790621a4d78bf1226a2f9d99a | |
parent | 4b3ee932f60b6dc15116127f93e3471b74876d62 (diff) | |
parent | 8bfd20498aaed81edee8a508d84c8ef936dcf778 (diff) |
Merge pull request #1146 from yuklai/master
Free mailimap_status_att_list on folderStatus error
-rwxr-xr-x | src/core/imap/MCIMAPSession.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index aac11310..afa4e6f7 100755 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -1097,14 +1097,17 @@ IMAPFolderStatus * IMAPSession::folderStatus(String * folder, ErrorCode * pError mShouldDisconnect = true; * pError = ErrorConnection; MCLog("status error : %s %i", MCUTF8DESC(this), * pError); + mailimap_status_att_list_free(status_att_list); return fs; } else if (r == MAILIMAP_ERROR_PARSE) { * pError = ErrorParse; + mailimap_status_att_list_free(status_att_list); return fs; } else if (hasError(r)) { * pError = ErrorNonExistantFolder; + mailimap_status_att_list_free(status_att_list); return fs; } |