bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObj… · python/cpython@89c4f90 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 89c4f90

ZackerySpytzserhiy-storchaka

authored and

committed

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

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -749,7 +749,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
749 749 }
750 750 if (_PyState_AddModule(mod, def) < 0) {
751 751 PyMapping_DelItem(modules, name);
752 -Py_DECREF(mod);
753 752 return NULL;
754 753 }
755 754 if (Py_VerboseFlag)