mirror of
https://github.com/python/cpython.git
synced 2025-09-03 23:41:18 +00:00
gh-102660: Fix Refleaks in import.c (#102744)
gh-102661 introduced some leaks. This fixes them. https://github.com/python/cpython/issues/102660
This commit is contained in:
parent
675b97a6ab
commit
2a03ed034e
3 changed files with 28 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue