commit | 0f415dc57fff6f15628d86150a1f18f083c27a07 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri Jun 30 07:32:46 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri Jun 30 07:32:46 2006 +0000 |
tree | 65c6541baa36d8915755e735d3d46037fbc750e1 | |
parent | 3f2748e775ccbb36aa7fbdf7ed808c5377849339 [diff] |
Another problem reported by Coverity. Backport candidate.
diff --git a/Objects/cellobject.c b/Objects/cellobject.c index da48dea..65a29aa 100644 --- a/Objects/cellobject.c +++ b/Objects/cellobject.c
@@ -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);