From: Neal Norwitz Date: Sun, 16 Jul 2006 02:05:35 +0000 (+0000) Subject: proto was dereffed above and is known to be good. No need for X. X-Git-Tag: v2.5b3~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=109f91414fe32e7d7dacbd8050c0b9992d0531db;p=thirdparty%2FPython%2Fcpython.git proto was dereffed above and is known to be good. No need for X. Reported by Klocwork, #39. --- diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index b147ae2ed94e..3595b052a993 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) {