aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Objects/funcobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index f86ef32f182..3cb24769138 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 {