PyEval_GetLocals()
leaks locals
#118934
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-C-API
type-bug
An unexpected behavior, bug, or error
Bug report
PyEval_GetLocals()
is documented as returning a borrowed reference. It now returns a new reference, which causes callers to leak the local variables:cpython/Python/ceval.c
Lines 2478 to 2479 in 35c4361
cc @gaogaotiantian @markshannon
The text was updated successfully, but these errors were encountered: