[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-315-g8afdad641
wwp at claws-mail.org
wwp at claws-mail.org
Tue Oct 5 13:09:00 CEST 2021
The branch, gtk3 has been updated
via 8afdad641552eb821b135d93fcdff1c68b22150c (commit)
from 5be9de249eba2821756096e22fef386b33b2f94e (commit)
Summary of changes:
src/addrbook.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 8afdad641552eb821b135d93fcdff1c68b22150c
Author: wwp <subscript at free.fr>
Date: Tue Oct 5 13:08:39 2021 +0200
Fix CID 1491373 and 1491378: resource leaks.
diff --git a/src/addrbook.c b/src/addrbook.c
index 296af5d23..7f31ed55d 100644
--- a/src/addrbook.c
+++ b/src/addrbook.c
@@ -630,7 +630,10 @@ static void addrbook_parse_group(AddressBookFile *book, XMLFile *file)
addrcache_hash_add_group(book->addressCache, group);
}
addrbook_parse_member_list(book, file, group);
- }
+ } else {
+ if (group)
+ addritem_free_item_group(group);
+ }
}
/**
@@ -726,6 +729,9 @@ static void addrbook_parse_folder(AddressBookFile *book, XMLFile *file)
}
}
addrbook_parse_folder_list(book, file, folder);
+ } else {
+ if (folder)
+ addritem_free_item_folder(folder);
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list