[Commits] [SCM] claws branch, master, updated. 3.18.0-251-geae61be5c

wwp at claws-mail.org wwp at claws-mail.org
Tue Oct 5 12:47:22 CEST 2021


The branch, master has been updated
       via  eae61be5c5942b403ab34526343506d135bbdfad (commit)
      from  7efb57bc4f3ba897da8d9db17b9d6747cc8277c2 (commit)

Summary of changes:
 src/addrindex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit eae61be5c5942b403ab34526343506d135bbdfad
Author: wwp <subscript at free.fr>
Date:   Tue Oct 5 12:46:24 2021 +0200

    Fix CID 1491180: resource leak (and not stopping at first match
    whereas we should).

diff --git a/src/addrindex.c b/src/addrindex.c
index 7f917f081..a1dbd7380 100644
--- a/src/addrindex.c
+++ b/src/addrindex.c
@@ -3178,7 +3178,7 @@ gchar *addrindex_get_picture_file(const gchar *emailaddr)
 			/* Get all persons */
 			listP = addrindex_ds_get_all_persons( ds );
 			nodeP = listP;
-			while( nodeP ) {
+			while( nodeP && !found) {
 				GList *nodeM;
 				ItemPerson *person = nodeP->data;
 				nodeM = person->listEMail;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list