[Python-checkins] r50676 - python/trunk/Modules/_ctypes/cfield.c
neal.norwitz
python-checkins at python.org
Sun Jul 16 04:05:36 CEST 2006
Author: neal.norwitz
Date: Sun Jul 16 04:05:35 2006
New Revision: 50676
Modified:
python/trunk/Modules/_ctypes/cfield.c
Log:
proto was dereffed above and is known to be good. No need for X.
Reported by Klocwork, #39.
Modified: python/trunk/Modules/_ctypes/cfield.c
==============================================================================
--- python/trunk/Modules/_ctypes/cfield.c (original)
+++ python/trunk/Modules/_ctypes/cfield.c Sun Jul 16 04:05:35 2006
@@ -124,7 +124,7 @@
self->getfunc = getfunc;
self->index = index;
- Py_XINCREF(proto);
+ Py_INCREF(proto);
self->proto = proto;
switch (fieldtype) {
More information about the Python-checkins
mailing list