diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-01-10 16:36:50 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-10 16:36:50 (GMT) |
| commit | 3e3d57d8490b729a80c8cd9e90475dec122dfe9e (patch) | |
| tree | c72564a58443fc6d1053b5f93ed4331a6fb0e563 /Python | |
| parent | 1cbd17c6987afc48c16caa7ccc7d19b01fbd39f2 (diff) | |
| download | cpython-3e3d57d8490b729a80c8cd9e90475dec122dfe9e.zip cpython-3e3d57d8490b729a80c8cd9e90475dec122dfe9e.tar.gz cpython-3e3d57d8490b729a80c8cd9e90475dec122dfe9e.tar.bz2 | |
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
(cherry picked from commit 89c4f90df97f6039325e354167e8f507bf199fd9)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
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 5f5d135..ccdd599 100644 --- a/Python/import.c +++ b/Python/import.c @@ -743,7 +743,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) |
