mirror of https://github.com/python/cpython
gh-125017: Fix refleak from GH-125636 (GH-125664)
This commit is contained in:
parent
d8c8648161
commit
c3164ae3cf
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue