https://github.com/python/cpython/commit/c3164ae3cf4e8f9ccc4df8ea5f5664c5927ea839
commit: c3164ae3cf4e8f9ccc4df8ea5f5664c5927ea839
branch: main
author: Zachary Ware <[email protected]>
committer: zware <[email protected]>
date: 2024-10-17T17:21:32-05:00
summary:
gh-125017: Fix refleak from GH-125636 (GH-125664)
files:
M Objects/funcobject.c
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index f86ef32f1827bf..3cb247691386bf 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -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 {
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]