From Murai Takashi <tmurai01@xxxxxxxxx>:
Murai Takashi has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/2908 ;)
Change subject: inbound_protocols/imap: Fix PVS V773
......................................................................
inbound_protocols/imap: Fix PVS V773
Fix IMAPProtocol::_CreateFolder() was exited
without releasing 'folder' pointer.
Change-Id: I80249694b7a977a220cfb0853b169bae83129f76
---
M src/add-ons/mail_daemon/inbound_protocols/imap/IMAPProtocol.cpp
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/08/2908/1
diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPProtocol.cpp
b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPProtocol.cpp
index 642e482..2bc869b 100644
--- a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPProtocol.cpp
+++ b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPProtocol.cpp
@@ -296,6 +296,7 @@
if (status != B_OK) {
fprintf(stderr, "Initializing folder %s failed: %s\n",
path.Path(),
strerror(status));
+ delete folder;
return NULL;
}
--
To view, visit https://review.haiku-os.org/c/haiku/+/2908
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I80249694b7a977a220cfb0853b169bae83129f76
Gerrit-Change-Number: 2908
Gerrit-PatchSet: 1
Gerrit-Owner: Murai Takashi <tmurai01@xxxxxxxxx>
Gerrit-MessageType: newchange