Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KCM: fix memory leak #7824

Closed

Conversation

alexey-tikhonov
Copy link
Member

@alexey-tikhonov alexey-tikhonov commented Feb 5, 2025

The copy of 'secret' argument - secret_val.data - was left hanging on sss_sec_ctx, effectively resulting in a memory leak. But this copy isn't actually required as this data isn't modified in below operations.

This is a backport of #7823

:fixes:'sssd_kcm' memory leak was fixed.

@alexey-tikhonov alexey-tikhonov added the branch: sssd-2-9-4 Corresponds to C8S label Feb 5, 2025
Copy link
Contributor

@aplopez aplopez left a comment

Choose a reason for hiding this comment

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

LGTM

@aplopez aplopez self-assigned this Feb 5, 2025
The copy of 'secret' argument - `secret_val.data` - was left hanging
on `sss_sec_ctx`, effectively resulting in a memory leak.
But this copy isn't actually required as this data isn't modified in
below operations.

This is a backport of SSSD#7823

:fixes:'sssd_kcm' memory leak was fixed.
Copy link
Contributor

@justin-stephenson justin-stephenson left a comment

Choose a reason for hiding this comment

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

Ack, thank you.

@alexey-tikhonov
Copy link
Member Author

Pushed PR: #7824

  • sssd-2-9
  • sssd-2-9-4

@alexey-tikhonov
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants