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 response iterator memory leak #302

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Fix response iterator memory leak #302

merged 1 commit into from
Sep 26, 2023

Conversation

Tabrizian
Copy link
Member

@Tabrizian Tabrizian commented Sep 25, 2023

It looks like that the response iterator keep_alive policy was incorrect. It was binding the lifetime of the return value to itself which resulted in the response iterator to never get destructed.

@Tabrizian Tabrizian marked this pull request as ready for review September 25, 2023 17:49
Copy link
Contributor

@krishung5 krishung5 left a comment

Choose a reason for hiding this comment

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

Great catch! Thanks for the fix.

Copy link
Contributor

@rmccorm4 rmccorm4 left a comment

Choose a reason for hiding this comment

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

LGTM locally on resolving the response-tensor-proportional leak, nice find!

@Tabrizian Tabrizian merged commit b136bf3 into main Sep 26, 2023
3 checks passed
@Tabrizian Tabrizian deleted the imant-leak-fix branch September 26, 2023 16:46
Tabrizian added a commit that referenced this pull request Oct 5, 2023
kthui added a commit that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants