diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-01-10 16:12:31 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-01-10 16:12:31 (GMT) |
commit | 89c4f90df97f6039325e354167e8f507bf199fd9 (patch) | |
tree | b2f1c7285f269c8f1082df17158ca234cbf73c72 /Python/import.c | |
parent | c5dc60ea858b8ccf78e8d26db81c307a8f9b2314 (diff) | |
download | cpython-89c4f90df97f6039325e354167e8f507bf199fd9.zip cpython-89c4f90df97f6039325e354167e8f507bf199fd9.tar.gz cpython-89c4f90df97f6039325e354167e8f507bf199fd9.tar.bz2 |
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 1 |
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) |