mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
(cherry picked from commit 89c4f90df9)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
1cbd17c698
commit
3e3d57d849
1 changed files with 0 additions and 1 deletions
|
|
@ -743,7 +743,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
|
|||
}
|
||||
if (_PyState_AddModule(mod, def) < 0) {
|
||||
PyMapping_DelItem(modules, name);
|
||||
Py_DECREF(mod);
|
||||
return NULL;
|
||||
}
|
||||
if (Py_VerboseFlag)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue