[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-303-g36769f5bb
wwp at claws-mail.org
wwp at claws-mail.org
Mon Oct 4 18:54:46 CEST 2021
The branch, gtk3 has been updated
via 36769f5bb86fa246c800a0fdf177c592ed9ec16f (commit)
from 8dd0f61c0c4025d74a075e4de7fcd57848bfca31 (commit)
Summary of changes:
src/imap.c | 3 +++
1 file changed, 3 insertions(+)
- Log -----------------------------------------------------------------
commit 36769f5bb86fa246c800a0fdf177c592ed9ec16f
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 9ae4c5435..fecb4b308 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