[Python-checkins] r47171 - python/trunk/Objects/cellobject.c
neal.norwitz
python-checkins at python.org
Fri Jun 30 09:32:46 CEST 2006
Author: neal.norwitz
Date: Fri Jun 30 09:32:46 2006
New Revision: 47171
Modified:
python/trunk/Objects/cellobject.c
Log:
Another problem reported by Coverity. Backport candidate.
Modified: python/trunk/Objects/cellobject.c
==============================================================================
--- python/trunk/Objects/cellobject.c (original)
+++ python/trunk/Objects/cellobject.c Fri Jun 30 09:32:46 2006
@@ -8,6 +8,8 @@
PyCellObject *op;
op = (PyCellObject *)PyObject_GC_New(PyCellObject, &PyCell_Type);
+ if (op == NULL)
+ return NULL;
op->ob_ref = obj;
Py_XINCREF(obj);
More information about the Python-checkins
mailing list