KEMBAR78
GH-98897: fix memory leak if `math.dist` raises exception by kumaraditya303 · Pull Request #98898 · python/cpython · GitHub
Skip to content

Conversation

@kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Oct 31, 2022

Copy link
Member

@vstinner vstinner left a 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?

@kumaraditya303
Copy link
Contributor Author

Can you please add a test to make sure that we don't reintroduce this memory leak later?

Added test.

@kumaraditya303 kumaraditya303 added type-bug An unexpected behavior, bug, or error needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Oct 31, 2022
kumaraditya303 and others added 2 commits October 31, 2022 16:01
Co-authored-by: Victor Stinner <vstinner@python.org>
@rhettinger rhettinger self-assigned this Oct 31, 2022
@rhettinger
Copy link
Contributor

Looks good. Thanks for the bug report and patch.

@rhettinger rhettinger merged commit ab57505 into python:main Nov 1, 2022
@miss-islington
Copy link
Contributor

Thanks @kumaraditya303 for the PR, and @rhettinger for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 1, 2022
…onGH-98898)

(cherry picked from commit ab57505)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@bedevere-bot
Copy link

GH-98941 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Nov 1, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 1, 2022
…onGH-98898)

(cherry picked from commit ab57505)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@bedevere-bot
Copy link

GH-98942 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Nov 1, 2022
miss-islington added a commit that referenced this pull request Nov 1, 2022
(cherry picked from commit ab57505)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Nov 1, 2022
(cherry picked from commit ab57505)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@kumaraditya303 kumaraditya303 deleted the math-dist branch November 1, 2022 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants