]> granicus.if.org Git - python/commitdiff
proto was dereffed above and is known to be good. No need for X.
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 16 Jul 2006 02:05:35 +0000 (02:05 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 16 Jul 2006 02:05:35 +0000 (02:05 +0000)
Reported by Klocwork, #39.

Modules/_ctypes/cfield.c

index b147ae2ed94e20403e3f53026a8d007be31d7099..3595b052a9931243b4670913435542d28769d29c 100644 (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) {