Kaydet (Commit) 89c4f90d authored tarafından Zackery Spytz's avatar Zackery Spytz Kaydeden (comit) Serhiy Storchaka

bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)

üst c5dc60ea
...@@ -749,7 +749,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename, ...@@ -749,7 +749,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
} }
if (_PyState_AddModule(mod, def) < 0) { if (_PyState_AddModule(mod, def) < 0) {
PyMapping_DelItem(modules, name); PyMapping_DelItem(modules, name);
Py_DECREF(mod);
return NULL; return NULL;
} }
if (Py_VerboseFlag) if (Py_VerboseFlag)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment