aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-03-15 18:43:54 -0600
committerGitHub <noreply@github.com>2023-03-15 18:43:54 -0600
commit2a03ed034edc6bb2db6fb972b2efe08db5145a28 (patch)
treeb6d8ea3de51cf72a15a12c8f052d20ac31fdb4c5 /Python/bltinmodule.c
parent675b97a6ab483573f07ce6e0b79b0bc370ab76c9 (diff)
downloadcpython-2a03ed034edc6bb2db6fb972b2efe08db5145a28.tar.gz
cpython-2a03ed034edc6bb2db6fb972b2efe08db5145a28.zip
gh-102660: Fix Refleaks in import.c (#102744)
gh-102661 introduced some leaks. This fixes them. https://github.com/python/cpython/issues/102660
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index a8a34620b9b..12ca0ba6c48 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -3098,9 +3098,6 @@ _PyBuiltin_Init(PyInterpreterState *interp)
}
Py_DECREF(debug);
- /* m_copy of Py_None means it is copied some other way. */
- builtinsmodule.m_base.m_copy = Py_NewRef(Py_None);
-
return mod;
#undef ADD_TO_ALL
#undef SETBUILTIN