gh-125017: Fix refleak from GH-125636 (GH-125664)

This commit is contained in:
Zachary Ware 2024-10-17 17:21:32 -05:00 committed by GitHub
parent d8c8648161
commit c3164ae3cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1264,6 +1264,7 @@ descriptor_set_wrapped_attribute(PyObject *oobj, PyObject *name, PyObject *value
PyErr_Format(PyExc_AttributeError,
"'%.200s' object has no attribute '%U'",
type_name, name);
Py_DECREF(dict);
return -1;
}
else {