mirror of https://github.com/python/cpython
gh-122229: Add missing `Py_DECREF` in `func_get_annotation_dict` (#122230)
This commit is contained in:
parent
af4329e7b1
commit
e9681211b9
|
@ -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…
Reference in New Issue