summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-08-31 15:44:26 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-08-31 15:44:26 (GMT)
commit74942c92525e549e47a483706a1518b37ce1f98d (patch)
treeff8be55442ed6201a955aa460d1c176fe9f694f4 /Python/import.c
parent8890bb22646d8207f5504ffbc258798e8cc328fa (diff)
parentf0afe77c52971e17e559ae4e7889bf353fccffb5 (diff)
downloadcpython-74942c92525e549e47a483706a1518b37ce1f98d.zip
cpython-74942c92525e549e47a483706a1518b37ce1f98d.tar.gz
cpython-74942c92525e549e47a483706a1518b37ce1f98d.tar.bz2
Merge
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index f3aa9d4..3bac5b8 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1047,7 +1047,7 @@ _imp_create_builtin(PyObject *module, PyObject *spec)
mod = _PyImport_FindExtensionObject(name, name);
if (mod || PyErr_Occurred()) {
Py_DECREF(name);
- Py_INCREF(mod);
+ Py_XINCREF(mod);
return mod;
}