- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Memory leak in RestClient.ExecuteInternal #1685
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
Comments
Thanks. I will look at it. |
alexeyzimarev
added a commit
that referenced
this issue
Jan 7, 2022
Check 107.0.2-alpha.0.4 if it fixes the issue. |
Thanks for the fast fix. Unfortunately I seem to be stuck on 107.0.0-preview.17 due to the encoding changes in 107.0.0-preview.18. I commented on #1687. |
Closing as the fix is implemented, will be released in the next stable version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There appears to be a small memory leak in
RestClient.ExecuteInternal
caused by the following code:CancellationTokenSource
does not have a finalizer, so my understanding is it needs to be explicitly disposed. I have made a custom build of RestSharp that adds using statements as shown below. This change fixes the leak.My application is making a high volume of requests, so this leak causes the system to run out of memory in about 2 hours.
Expected Behavior
No leaked memory
Actual Behavior
Leaked memory
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: