Another problem reported by Coverity. Backport candidate.

This commit is contained in:
Neal Norwitz 2006-06-30 07:32:46 +00:00
parent 3f2748e775
commit 0f415dc57f
1 changed files with 2 additions and 0 deletions

View File

@ -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);