commit | 3e3d57d8490b729a80c8cd9e90475dec122dfe9e | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Thu Jan 10 08:36:50 2019 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 10 08:36:50 2019 -0800 |
tree | c72564a58443fc6d1053b5f93ed4331a6fb0e563 | |
parent | 1cbd17c6987afc48c16caa7ccc7d19b01fbd39f2 [diff] |
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>
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 @@ } if (_PyState_AddModule(mod, def) < 0) { PyMapping_DelItem(modules, name); - Py_DECREF(mod); return NULL; } if (Py_VerboseFlag)