[Python-checkins] cpython (3.5): Issue #27909: Fix INCREF for possible NULL value
raymond.hettinger
python-checkins at python.org
Wed Aug 31 11:44:35 EDT 2016
https://hg.python.org/cpython/rev/caf547c9e589
changeset: 102969:caf547c9e589
branch: 3.5
parent: 102963:b8dd9ae08a91
user: Raymond Hettinger <python at rcn.com>
date: Wed Aug 31 08:44:11 2016 -0700
summary:
Issue #27909: Fix INCREF for possible NULL value
files:
Python/import.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -1056,7 +1056,7 @@
mod = _PyImport_FindExtensionObject(name, name);
if (mod || PyErr_Occurred()) {
Py_DECREF(name);
- Py_INCREF(mod);
+ Py_XINCREF(mod);
return mod;
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list