Missing error handling in _PyEval_GetFrameLocals
in ceval.c
#118613
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
Here's the problematic code:
cpython/Python/ceval.c
Lines 2497 to 2504 in d8d9491
What's wrong?
PyDict_New()
can returnNULL
, it is not checkedPy_DECREF(locals);
is only called on success, but not on errorRefs b034f14
I have a PR ready.
Linked PRs
_PyEval_GetFrameLocals
inceval.c
#118614The text was updated successfully, but these errors were encountered: