]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] [3.12] gh-109181: Fix refleak in tb_get_lineno() (GH-111948) (#111951)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 10 Nov 2023 13:32:02 +0000 (14:32 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Nov 2023 13:32:02 +0000 (13:32 +0000)
commit8222ad01fe5e802649f0a1bd30d26d4623533c51
tree9efe76ac3aea1d67986fa07b69ced78a4f3b0e96
parent7b8445109d7dd8b319f5239ca013e83938579b4c
[3.11] [3.12] gh-109181: Fix refleak in tb_get_lineno() (GH-111948) (#111951)

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

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Python/traceback.c