diff options
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 8e5896a..192c4c1 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -120,8 +120,10 @@ PyThreadState_New(PyInterpreterState *interp) tstate->exc_value = NULL; tstate->exc_traceback = NULL; - tstate->sys_profilefunc = NULL; - tstate->sys_tracefunc = NULL; + tstate->c_profilefunc = NULL; + tstate->c_tracefunc = NULL; + tstate->c_profileobj = NULL; + tstate->c_traceobj = NULL; HEAD_LOCK(); tstate->next = interp->tstate_head; @@ -152,8 +154,10 @@ PyThreadState_Clear(PyThreadState *tstate) ZAP(tstate->exc_value); ZAP(tstate->exc_traceback); - ZAP(tstate->sys_profilefunc); - ZAP(tstate->sys_tracefunc); + tstate->c_profilefunc = NULL; + tstate->c_tracefunc = NULL; + ZAP(tstate->c_profileobj); + ZAP(tstate->c_traceobj); } |