[Commits] [SCM] claws branch, master, updated. 3.18.0-253-ge2bde697b

wwp at claws-mail.org wwp at claws-mail.org
Tue Oct 5 13:08:56 CEST 2021


The branch, master has been updated
       via  e2bde697bdef25a7844f7a5af0ceb9e3fbddfc17 (commit)
      from  5d2612f9ce9ea43a88a70bf941d4558499de5357 (commit)

Summary of changes:
 src/addrbook.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit e2bde697bdef25a7844f7a5af0ceb9e3fbddfc17
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