commit eae61be5c5942b403ab34526343506d135bbdfad
parent 7efb57bc4f3ba897da8d9db17b9d6747cc8277c2
Author: wwp <subscript@free.fr>
Date: Tue, 5 Oct 2021 12:46:24 +0200
Fix CID 1491180: resource leak (and not stopping at first match
whereas we should).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;