Skip to content

Commit 3e3d57d

Browse files
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
(cherry picked from commit 89c4f90) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 1cbd17c commit 3e3d57d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Python/import.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
743743
}
744744
if (_PyState_AddModule(mod, def) < 0) {
745745
PyMapping_DelItem(modules, name);
746-
Py_DECREF(mod);
747746
return NULL;
748747
}
749748
if (Py_VerboseFlag)

0 commit comments

Comments
 (0)