We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 149d66f commit 924e7bfCopy full SHA for 924e7bf
Modules/_ctypes/_ctypes.c
@@ -2235,6 +2235,9 @@ PyCSimpleType_from_param(PyObject *type, PyObject *value)
2235
Py_DECREF(parg);
2236
2237
if (_PyObject_LookupAttr(value, &_Py_ID(_as_parameter_), &as_parameter) < 0) {
2238
+ Py_XDECREF(exc);
2239
+ Py_XDECREF(val);
2240
+ Py_XDECREF(tb);
2241
return NULL;
2242
}
2243
if (as_parameter) {
0 commit comments