summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorZachary Ware <zach@python.org>2024-10-17 22:21:32 (GMT)
committerGitHub <noreply@github.com>2024-10-17 22:21:32 (GMT)
commitc3164ae3cf4e8f9ccc4df8ea5f5664c5927ea839 (patch)
treefbef0d4b803625ff5489854b32cb34d9e11ea1a9 /Objects
parentd8c864816121547338efa43c56e3f75ead98a924 (diff)
downloadcpython-c3164ae3cf4e8f9ccc4df8ea5f5664c5927ea839.zip
cpython-c3164ae3cf4e8f9ccc4df8ea5f5664c5927ea839.tar.gz
cpython-c3164ae3cf4e8f9ccc4df8ea5f5664c5927ea839.tar.bz2
gh-125017: Fix refleak from GH-125636 (GH-125664)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/funcobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index f86ef32..3cb2476 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 {