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 leakage #4945

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Fix memory leakage #4945

merged 1 commit into from
Jul 19, 2024

Conversation

cindytsai
Copy link
Contributor

PR Summary

This is a bug that causes memory leakage in projections.

It forgot to free vorig when returning inside the if block.
Since vorig won't be used inside that if block anyway, it should be moved under the if block.

Copy link

welcome bot commented Jul 18, 2024

Hi! Welcome, and thanks for opening this pull request. We have some guidelines for new pull requests, and soon you'll hear back about the results of our tests and continuous integration checks. Thank you for your contribution!

@cindytsai cindytsai changed the title Fix memory leakage in Fix memory leakage Jul 18, 2024
Copy link
Contributor

@chrishavlin chrishavlin left a comment

Choose a reason for hiding this comment

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

nice catch!

@chrishavlin chrishavlin merged commit a093170 into yt-project:main Jul 19, 2024
12 checks passed
Copy link

welcome bot commented Jul 19, 2024

Hooray! Congratulations on your first merged pull request! We hope we keep seeing you around! 🎆

@matthewturk
Copy link
Member

I'd like to just add here that @cindytsai was really diligent in tracking this down, and really put a lot of effort into finding it. Thank you, @cindytsai !

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

Successfully merging this pull request may close these issues.

4 participants