From 109f91414fe32e7d7dacbd8050c0b9992d0531db Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 16 Jul 2006 02:05:35 +0000 Subject: proto was dereffed above and is known to be good. No need for X. Reported by Klocwork, #39. --- Modules/_ctypes/cfield.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index b147ae2..3595b05 100644 --- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -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) { -- cgit v0.12