mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
bpo-40429: PyThreadState_GetFrame() returns a strong ref (GH-19781)
The PyThreadState_GetFrame() function now returns a strong reference to the frame.
This commit is contained in:
parent
37af21b667
commit
4386b9045e
7 changed files with 26 additions and 20 deletions
|
@ -1372,7 +1372,7 @@ _PyErr_WriteUnraisableMsg(const char *err_msg_str, PyObject *obj)
|
|||
}
|
||||
|
||||
if (exc_tb == NULL) {
|
||||
struct _frame *frame = tstate->frame;
|
||||
PyFrameObject *frame = tstate->frame;
|
||||
if (frame != NULL) {
|
||||
exc_tb = _PyTraceBack_FromFrame(NULL, frame);
|
||||
if (exc_tb == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue