[Python-checkins] r52173 - python/branches/release24-maint/Python/bltinmodule.c
andrew.kuchling
python-checkins at python.org
Thu Oct 5 21:01:50 CEST 2006
Author: andrew.kuchling
Date: Thu Oct 5 21:01:50 2006
New Revision: 52173
Modified:
python/branches/release24-maint/Python/bltinmodule.c
Log:
[Backport r51220 | neal.norwitz]
It's highly unlikely, though possible for PyEval_Get*() to return NULLs.
So be safe and do an XINCREF.
Klocwork # 221-222.
Modified: python/branches/release24-maint/Python/bltinmodule.c
==============================================================================
--- python/branches/release24-maint/Python/bltinmodule.c (original)
+++ python/branches/release24-maint/Python/bltinmodule.c Thu Oct 5 21:01:50 2006
@@ -687,7 +687,7 @@
PyObject *d;
d = PyEval_GetGlobals();
- Py_INCREF(d);
+ Py_XINCREF(d);
return d;
}
@@ -1118,7 +1118,7 @@
PyObject *d;
d = PyEval_GetLocals();
- Py_INCREF(d);
+ Py_XINCREF(d);
return d;
}
More information about the Python-checkins
mailing list