mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-125017: Fix refleak from GH-125636 (GH-125664)
This commit is contained in:
parent
d8c8648161
commit
c3164ae3cf
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue