diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-03-16 00:43:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 00:43:54 (GMT) |
commit | 2a03ed034edc6bb2db6fb972b2efe08db5145a28 (patch) | |
tree | b6d8ea3de51cf72a15a12c8f052d20ac31fdb4c5 /Python/sysmodule.c | |
parent | 675b97a6ab483573f07ce6e0b79b0bc370ab76c9 (diff) | |
download | cpython-2a03ed034edc6bb2db6fb972b2efe08db5145a28.zip cpython-2a03ed034edc6bb2db6fb972b2efe08db5145a28.tar.gz cpython-2a03ed034edc6bb2db6fb972b2efe08db5145a28.tar.bz2 |
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/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index fc05502..d282104 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -3425,9 +3425,6 @@ _PySys_Create(PyThreadState *tstate, PyObject **sysmod_p) return _PyStatus_ERR("failed to create a module object"); } - /* m_copy of Py_None means it is copied some other way. */ - sysmodule.m_base.m_copy = Py_NewRef(Py_None); - PyObject *sysdict = PyModule_GetDict(sysmod); if (sysdict == NULL) { goto error; |