summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-07-16 02:05:35 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-07-16 02:05:35 (GMT)
commit109f91414fe32e7d7dacbd8050c0b9992d0531db (patch)
tree4c4b2d8faa7a3df03be93bd599c4feb1cabea825 /Modules
parentce5b3c3188ec655ece4428e6a3e1622e322f4603 (diff)
downloadcpython-109f91414fe32e7d7dacbd8050c0b9992d0531db.zip
cpython-109f91414fe32e7d7dacbd8050c0b9992d0531db.tar.gz
cpython-109f91414fe32e7d7dacbd8050c0b9992d0531db.tar.bz2
proto was dereffed above and is known to be good. No need for X.
Reported by Klocwork, #39.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/cfield.c2
1 files changed, 1 insertions, 1 deletions
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) {