]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99578: Fix refleak in _imp.create_builtin() (GH-99642)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Nov 2022 11:44:56 +0000 (03:44 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 11:44:56 +0000 (03:44 -0800)
commit37dbbb208fd9e01890bfb2c741e89359582d5569
tree2f2fbb65c0c20ef0681484debc689703c5195b82
parent101dfaedb202c5dc1d940bffc953ab1f9aa10bc7
gh-99578: Fix refleak in _imp.create_builtin() (GH-99642)

Fix a reference bug in _imp.create_builtin() after the creation of
the first sub-interpreter for modules "builtins" and "sys".
(cherry picked from commit cb2ef8b2acbb231c207207d3375b2f8b0077a6ee)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_imp.py
Misc/NEWS.d/next/Core and Builtins/2022-11-21-11-27-14.gh-issue-99578.DcKoBJ.rst [new file with mode: 0644]
Python/import.c