Skip to content

[3.12] gh-109181: Fix refleak in tb_get_lineno() #111948

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

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 10, 2023

PyFrame_GetCode() returns a strong reference.

PyFrame_GetCode() returns a strong reference.
@vstinner
Copy link
Member Author

cc @pablogsal

@vstinner vstinner merged commit 4b0c875 into python:3.12 Nov 10, 2023
@vstinner vstinner deleted the tb_get_lineno branch November 10, 2023 13:07
@miss-islington-app
Copy link

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 10, 2023
PyFrame_GetCode() returns a strong reference.
(cherry picked from commit 4b0c875)

Co-authored-by: Victor Stinner <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Nov 10, 2023

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

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Nov 10, 2023
@pablogsal
Copy link
Member

Thanks for fixing this 🖤

vstinner added a commit that referenced this pull request Nov 10, 2023
…111951)

[3.12] gh-109181: Fix refleak in tb_get_lineno() (GH-111948)

PyFrame_GetCode() returns a strong reference.
(cherry picked from commit 4b0c875)

Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants