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: use DefaultObjectPoolProvider to get a DisposableObjectPool inst… #427

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

sarmis
Copy link
Contributor

@sarmis sarmis commented Nov 24, 2022

Default object pool does not dispose non-retained objects, leading to IModel leakage. Using the DefaultObjectPoolProvider will result in getting a DisposableObjectPool that does dispose non-retained objects.

…ead of a DefaultObjectPool

Default object pool does not dispose non-retained object, leading to IModel leakage.
@catcherwong catcherwong self-requested a review November 24, 2022 13:34
Copy link
Member

@catcherwong catcherwong left a comment

Choose a reason for hiding this comment

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

LGTM

@catcherwong catcherwong merged commit 23540d1 into dotnetcore:dev Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants