Skip to content

Commit

Permalink
pythongh-122229: Add missing Py_DECREF in func_get_annotation_dict (
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Jul 24, 2024
1 parent af4329e commit e968121
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objects/funcobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e968121

Please sign in to comment.