Commits

Alex Gaynor committed 8a9134d

fix`

Comments (0)

Files changed (1)

c/_cffi_backend.c

         Py_INCREF(res);
         PyObject *getter = PyTuple_GetItem(res, 0);
         Py_INCREF(getter);
-        res = PyObject_CallFunctionObjArgs(getter, self);
+        res = PyObject_CallFunctionObjArgs(getter, self, NULL);
         Py_INCREF(res);
         return res;
     }
         Py_INCREF(res);
         PyObject *setter = PyTuple_GetItem(res, 1);
         Py_INCREF(setter);
-        res = PyObject_CallFunctionObjArgs(setter, self, value);
+        res = PyObject_CallFunctionObjArgs(setter, self, value, NULL);
         if (res == NULL)
             return -1;
         Py_DECREF(res);