From: Zachary Ware Date: Thu, 17 Oct 2024 22:21:32 +0000 (-0500) Subject: gh-125017: Fix refleak from GH-125636 (GH-125664) X-Git-Tag: v3.14.0a2~380 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3164ae3cf4e8f9ccc4df8ea5f5664c5927ea839;p=thirdparty%2FPython%2Fcpython.git gh-125017: Fix refleak from GH-125636 (GH-125664) --- diff --git a/Objects/funcobject.c b/Objects/funcobject.c index f86ef32f1827..3cb247691386 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 {