8000 Add another missing reference decrementation · python/cpython@924e7bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 924e7bf

Browse files
committed
Add another missing reference decrementation
1 parent 149d66f commit 924e7bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,6 +2235,9 @@ PyCSimpleType_from_param(PyObject *type, PyObject *value)
22352235
Py_DECREF(parg);
22362236

22372237
if (_PyObject_LookupAttr(value, &_Py_ID(_as_parameter_), &as_parameter) < 0) {
2238+
Py_XDECREF(exc);
2239+
Py_XDECREF(val);
2240+
Py_XDECREF(tb);
22382241
return NULL;
22392242
}
22402243
if (as_parameter) {

0 commit comments

Comments
 (0)
0