diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-01-10 09:12:31 -0700 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-01-10 18:12:31 +0200 |
commit | 89c4f90df97f6039325e354167e8f507bf199fd9 (patch) | |
tree | b2f1c7285f269c8f1082df17158ca234cbf73c72 /Python | |
parent | c5dc60ea858b8ccf78e8d26db81c307a8f9b2314 (diff) | |
download | cpython-git-89c4f90df97f6039325e354167e8f507bf199fd9.tar.gz |
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
Diffstat (limited to 'Python')
-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 c4f087761c..344f199216 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) |