summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-30 07:32:46 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-30 07:32:46 +0000
commit3cc5f6c92f567ba794918d7bb7de8c5e7ffbd50c (patch)
treec7adfd2620c5437d9762c5b0c1089727ad0e1cf5 /Objects
parentb12f66a7c2d39e3cc4cb90a63d29308815948234 (diff)
downloadcpython-3cc5f6c92f567ba794918d7bb7de8c5e7ffbd50c.tar.gz
Another problem reported by Coverity. Backport candidate.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/cellobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/cellobject.c b/Objects/cellobject.c
index da48dea745..65a29aaca8 100644
--- a/Objects/cellobject.c
+++ b/Objects/cellobject.c
@@ -8,6 +8,8 @@ PyCell_New(PyObject *obj)
PyCellObject *op;
op = (PyCellObject *)PyObject_GC_New(PyCellObject, &PyCell_Type);
+ if (op == NULL)
+ return NULL;
op->ob_ref = obj;
Py_XINCREF(obj);