Skip to content

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

Merged
vstinner merged 1 commit into
python:3.12from
vstinner:tb_get_lineno
Nov 10, 2023
Merged

[3.12] gh-109181: Fix refleak in tb_get_lineno()#111948
vstinner merged 1 commit into
python:3.12from
vstinner:tb_get_lineno

Conversation

@vstinner

@vstinnervstinner commented Nov 10, 2023

Copy link
Copy Markdown
Member

PyFrame_GetCode() returns a strong reference.

PyFrame_GetCode() returns a strong reference.
@vstinner

Copy link
Copy Markdown
MemberAuthor

cc @pablogsal

Comment threadPython/traceback.c
Comment threadPython/traceback.c
@vstinner
vstinner merged commit 4b0c875 into python:3.12Nov 10, 2023
@vstinner
vstinner deleted the tb_get_lineno branch November 10, 2023 13:07
@miss-islington-app

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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