]> 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:43:23 +0000 (03:43 -0800)
committerGitHub <noreply@github.com>
Mon, 21 Nov 2022 11:43:23 +0000 (03:43 -0800)
commit9dda9020abcf0d51d59b283a89c58c8e1fb0f574
tree7dbd62607a0231f091aaf86e05affe4b4c338d76
parentbb4c09158324e0369e5cc1f6a021ebe144703202
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