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 missing IDisposable using #2622

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

NoahStahl
Copy link
Contributor

@NoahStahl NoahStahl commented Dec 17, 2022

While running InferSharp on a project using this library, a finding came up for a missing using for an IDisposable. After adding this, the warning is resolved. So, figured it would be nice to fix to avoid confusion for stripe-dotnet users who use this tool.

I attempted to run the tests but don't have the mock service in place, so I haven't verified that aspect. If needed, I can pursue.

The finding message, for reference:

/_/src/Stripe.net/Infrastructure/Public/StripeStreamedResponse.cs:47: error: Pulse Resource Leak
  Resource dynamically allocated by constructor System.IO.StreamReader() on line 46 is not closed after the last access at line 47, column 13.

@CLAassistant
Copy link

CLAassistant commented Dec 17, 2022

CLA assistant check
All committers have signed the CLA.

@NoahStahl
Copy link
Contributor Author

Is there anything else to be done for this one to merge?

@richardm-stripe
Copy link
Contributor

richardm-stripe commented Jan 10, 2023

Thanks for following up @NoahStahl! Looks like this one fell through the cracks. Triggering the merge. Also thanks for the contribution.

@richardm-stripe richardm-stripe merged commit 1bb6081 into stripe:master Jan 10, 2023
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.

4 participants