Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Nov 10, 2023

PyFrame_GetCode() returns a strong reference.

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

cc @pablogsal

@vstinnervstinner merged commit 4b0c875 into python:3.12Nov 10, 2023
@vstinnervstinner 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 <vstinner@python.org>
@bedevere-app
Copy link

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

@bedevere-appbedevere-appbot 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 <vstinner@python.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@pablogsal@iritkatriel