[Commits] [SCM] claws branch, master, updated. 3.18.0-241-g55588396c
wwp at claws-mail.org
wwp at claws-mail.org
Mon Oct 4 18:54:43 CEST 2021
The branch, master has been updated
via 55588396cc4195f932a344737bed6d2e9337816e (commit)
from ffa9ae35d1f6071db1d8f013299dcd50362bac87 (commit)
Summary of changes:
src/imap.c | 3 +++
1 file changed, 3 insertions(+)
- Log -----------------------------------------------------------------
commit 55588396cc4195f932a344737bed6d2e9337816e
Author: wwp <subscript at free.fr>
Date: Mon Oct 4 18:54:31 2021 +0200
Fix CID 1491135, 1491259: resource leaks.
diff --git a/src/imap.c b/src/imap.c
index 514661250..1ad6cc5ca 100644
--- a/src/imap.c
+++ b/src/imap.c
@@ -3226,9 +3226,11 @@ static FolderItem *imap_create_folder(Folder *folder, FolderItem *parent,
gchar *cached_msg = imap_get_cached_filename(parent, to_number(name));
if (is_file_exist(cached_msg)) {
if (claws_unlink(cached_msg) != 0) {
+ g_free(cached_msg);
return NULL;
}
}
+ g_free(cached_msg);
}
debug_print("getting session...\n");
@@ -3266,6 +3268,7 @@ static FolderItem *imap_create_folder(Folder *folder, FolderItem *parent,
separator = imap_get_path_separator(session, IMAP_FOLDER(folder), imap_path, &ok);
if (is_fatal(ok)) {
+ g_free(dirpath);
g_free(imap_path);
return NULL;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list