summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-01-10 16:12:31 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-01-10 16:12:31 (GMT)
commit89c4f90df97f6039325e354167e8f507bf199fd9 (patch)
treeb2f1c7285f269c8f1082df17158ca234cbf73c72
parentc5dc60ea858b8ccf78e8d26db81c307a8f9b2314 (diff)
downloadcpython-89c4f90df97f6039325e354167e8f507bf199fd9.zip
cpython-89c4f90df97f6039325e354167e8f507bf199fd9.tar.gz
cpython-89c4f90df97f6039325e354167e8f507bf199fd9.tar.bz2
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
-rw-r--r--Python/import.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index c4f0877..344f199 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -749,7 +749,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)