mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-113939: Frame clear, clear locals (#113940)
This commit is contained in:
parent
b905fad838
commit
78c254582b
3 changed files with 27 additions and 0 deletions
|
@ -926,6 +926,7 @@ frame_tp_clear(PyFrameObject *f)
|
|||
Py_CLEAR(locals[i]);
|
||||
}
|
||||
f->f_frame->stacktop = 0;
|
||||
Py_CLEAR(f->f_frame->f_locals);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue