-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
GH-98897: fix memory leak if math.dist
raises exception
#98898
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a test to make sure that we don't reintroduce this memory leak later?
Added test. |
Misc/NEWS.d/next/Library/2022-10-31-12-34-03.gh-issue-98897.rgNn4x.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Stinner <vstinner@python.org>
Looks good. Thanks for the bug report and patch. |
Thanks @kumaraditya303 for the PR, and @rhettinger for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
…onGH-98898) (cherry picked from commit ab57505) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
GH-98941 is a backport of this pull request to the 3.11 branch. |
…onGH-98898) (cherry picked from commit ab57505) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
GH-98942 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit ab57505) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit ab57505) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
math.dist
raises exception #98897