Skip to content

LDAP: free tmp var within the loop#8484

Open
alexey-tikhonov wants to merge 1 commit intoSSSD:masterfrom
alexey-tikhonov:incomplete-groups-again-2
Open

LDAP: free tmp var within the loop#8484
alexey-tikhonov wants to merge 1 commit intoSSSD:masterfrom
alexey-tikhonov:incomplete-groups-again-2

Conversation

@alexey-tikhonov
Copy link
Member

inside sdap_add_incomplete_groups() to avoid memory pressure
/ cache trashing if handling large groups set.

inside `sdap_add_incomplete_groups()` to avoid memory pressure
 / cache trashing if handling large groups set.
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies sdap_add_incomplete_groups to free the msg variable within the processing loop, which is intended to reduce memory pressure when handling a large number of groups. The msg variable is also initialized to NULL to ensure safe operation. I have reviewed the changes and have no further comments.

@alexey-tikhonov alexey-tikhonov marked this pull request as ready for review February 25, 2026 17:45
@alexey-tikhonov alexey-tikhonov added Waiting for review Trivial A single reviewer is sufficient to review the Pull Request labels Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-sssd-2-9 Trivial A single reviewer is sufficient to review the Pull Request Waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants