talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 224f1e26f81bbf5f984f43ff5f48045c00f6350d
parent 38915be2c2718111f16fa6f6b8c325df913e1aac
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:
Msrc/addrindex.c | 2+-
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;