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

Dispose HttpClient and Stream in AddPackageParser #41490

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

omajid
Copy link
Member

@omajid omajid commented Jun 7, 2024

The Stream instance and HttpClient instance are both IDisposable. So clean them up.

The Stream instance and HttpClient instance are both IDisposable. So
clean them up.
@omajid omajid requested a review from a team as a code owner June 7, 2024 21:07
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Jun 7, 2024
@KalleOlaviNiemitalo
Copy link
Contributor

HttpResponseMessage and HttpContent are likewise disposable, but I'm not sure whether they hold any resources other than the Stream that is disposed in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants