diff options
| author | Raymond Hettinger <python@rcn.com> | 2016-08-31 08:44:11 -0700 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2016-08-31 08:44:11 -0700 |
| commit | ebb4620a4505db607f98c3467e51da3456759f28 (patch) | |
| tree | 2fe4ad395ca59eab96383cfb967d9cf1799c773c /Python | |
| parent | 3362270d61dee53fbbbe8f647a314b6954e2f80e (diff) | |
| download | cpython-ebb4620a4505db607f98c3467e51da3456759f28.tar.gz | |
Issue #27909: Fix INCREF for possible NULL value
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 5025e755f4..7018d59e88 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1056,7 +1056,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; } |
