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

Fix memory leak when getting stylus cache metrics #2734

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

diegoximenes
Copy link
Contributor

@diegoximenes diegoximenes commented Oct 10, 2024

Resolves NIT-2842

Fixes memory leak when getting stylus cache metrics.
For a more detailed description check #2705 (comment)

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Oct 10, 2024
@diegoximenes diegoximenes force-pushed the fix_mem_leak_stylus_cache_metrics branch from 9e3353b to f9e60d6 Compare October 10, 2024 19:39
@diegoximenes diegoximenes marked this pull request as ready for review October 10, 2024 20:55
Copy link
Contributor

@tsahee tsahee left a comment

Choose a reason for hiding this comment

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

LGTM

@tsahee tsahee merged commit a2ae1c5 into master Oct 10, 2024
17 checks passed
@tsahee tsahee deleted the fix_mem_leak_stylus_cache_metrics branch October 10, 2024 22:56
@PlasmaPower
Copy link
Collaborator

I'm not convinced there was any memory leak here before this. It was just allocating a C ABI struct and then returning it right? That should live on the stack and get freed as any other stack variables would.

@diegoximenes
Copy link
Contributor Author

I'm not convinced there was any memory leak here before this. It was just allocating a C ABI struct and then returning it right? That should live on the stack and get freed as any other stack variables would.

I think you are right :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants