Skip to content

LDAP: free tmp var within the loop#8484

Merged
alexey-tikhonov merged 1 commit intoSSSD:masterfrom
alexey-tikhonov:incomplete-groups-again-2
Mar 2, 2026
Merged

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

Conversation

@alexey-tikhonov
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown

@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
Copy link
Copy Markdown
Contributor

@thalman thalman left a comment

Choose a reason for hiding this comment

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

LGTM, ack

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

Reviewed-by: Tomáš Halman <thalman@redhat.com>
@sssd-bot
Copy link
Copy Markdown
Contributor

sssd-bot commented Mar 2, 2026

The pull request was accepted by @alexey-tikhonov with the following PR CI status:


🟢 CodeQL (success)
🟢 osh-diff-scan:fedora-rawhide-x86_64:upstream (success)
🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟢 rpm-build:fedora-44-x86_64:upstream (success)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 Build / freebsd (success)
🟢 Build / make-distcheck (success)
🟢 ci / intgcheck (centos-10) (success)
🟢 ci / intgcheck (fedora-42) (success)
🟢 ci / intgcheck (fedora-43) (success)
🟢 ci / intgcheck (fedora-44) (success)
🟢 ci / intgcheck (fedora-45) (success)
🟢 ci / prepare (success)
🟢 ci / system (centos-10) (success)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🟢 ci / system (fedora-44) (success)
🟢 ci / system (fedora-45) (success)
➖ Coverity scan / coverity (skipped)
🟢 Static code analysis / codeql (success)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

@sssd-bot sssd-bot force-pushed the incomplete-groups-again-2 branch from 1a8aefa to c7410c8 Compare March 2, 2026 10:34
@alexey-tikhonov alexey-tikhonov merged commit 8c1e20b into SSSD:master Mar 2, 2026
10 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants