mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
gh-122229: Add missing Py_DECREF
in func_get_annotation_dict
(#122230)
This commit is contained in:
parent
af4329e7b1
commit
e9681211b9
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue