Missing decref in error handling of func_get_annotation_dict
#122229
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Here:
cpython/Objects/funcobject.c
Lines 537 to 551 in af4329e
ann_dict
PyDict_SetItem
fails, we returnNULL
I will send a PR.
Linked PRs
Py_DECREF
infunc_get_annotation_dict
#122230The text was updated successfully, but these errors were encountered: