commit 0df388b346e5b9474bafbe1aa1d28810d0764616
parent 295a5b31fc8a52fe36bc7fdbf9cd554539bce8f5
Author: Ricardo Mones <ricardo@mones.org>
Date: Sun, 9 Mar 2025 18:16:34 +0100
Fix CID 1491239: resource leak
addritem_person_add_attribute() keeps the attrib data on the list when
condition is true.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/ldapquery.c b/src/ldapquery.c
@@ -543,6 +543,7 @@ static GList *ldapqry_build_items_fl(
g_free(picfile);
g_free(dir);
}
+ addritem_free_attribute(attrib);
}
}