diff options
-rw-r--r-- | Objects/funcobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 4021129..8df0da8 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -547,6 +547,7 @@ func_get_annotation_dict(PyFunctionObject *op) PyTuple_GET_ITEM(ann_tuple, i + 1)); if (err < 0) { + Py_DECREF(ann_dict); return NULL; } } |