proto was dereffed above and is known to be good. No need for X.

Reported by Klocwork, #39.
This commit is contained in:
Neal Norwitz 2006-07-16 02:05:35 +00:00
parent ce5b3c3188
commit 109f91414f

View file

@ -124,7 +124,7 @@ CField_FromDesc(PyObject *desc, int index,
self->getfunc = getfunc;
self->index = index;
Py_XINCREF(proto);
Py_INCREF(proto);
self->proto = proto;
switch (fieldtype) {