File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,6 @@ _PyFrame_Copy(InterpreterFrame *src, InterpreterFrame *dest)
52
52
memcpy (dest , src , size );
53
53
}
54
54
55
- static inline void
56
- clear_specials (InterpreterFrame * frame )
57
- {
58
- Py_XDECREF (frame -> frame_obj );
59
- Py_XDECREF (frame -> f_locals );
60
- Py_DECREF (frame -> f_func );
61
- Py_DECREF (frame -> f_code );
62
- }
63
55
64
56
static void
65
57
take_ownership (PyFrameObject * f , InterpreterFrame * frame )
@@ -110,5 +102,8 @@ _PyFrame_Clear(InterpreterFrame * frame)
110
102
for (int i = 0 ; i < frame -> stacktop ; i ++ ) {
111
103
Py_XDECREF (frame -> localsplus [i ]);
112
104
}
113
- clear_specials (frame );
105
+ Py_XDECREF (frame -> frame_obj );
106
+ Py_XDECREF (frame -> f_locals );
107
+ Py_DECREF (frame -> f_func );
108
+ Py_DECREF (frame -> f_code );
114
109
}
You can’t perform that action at this time.
0 commit comments