inbound_protocols/imap: Fix PVS V773

Fix IMAPProtocol::_CreateFolder() was exited
without releasing 'folder' pointer.

Change-Id: I80249694b7a977a220cfb0853b169bae83129f76
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2908
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Murai Takashi 2020-06-13 09:13:22 +09:00 committed by waddlesplash
parent 58dbf89d71
commit ed78fbfc36

View File

@ -296,6 +296,7 @@ IMAPProtocol::_CreateFolder(const BString& mailbox, const BString& separator)
if (status != B_OK) {
fprintf(stderr, "Initializing folder %s failed: %s\n", path.Path(),
strerror(status));
delete folder;
return NULL;
}