@@ -1121,7 +1121,7 @@ static int
11211121symtable_add_def (struct symtable * st , PyObject * name , int flag ,
11221122 int lineno , int col_offset , int end_lineno , int end_col_offset )
11231123{
1124- return symtable_add_def_helper (st , name , flag , st -> st_cur ,
1124+ return symtable_add_def_helper (st , name , flag , st -> st_cur ,
11251125 lineno , col_offset , end_lineno , end_col_offset );
11261126}
11271127
@@ -2134,7 +2134,7 @@ symtable_raise_if_annotation_block(struct symtable *st, const char *name, expr_t
21342134static int
21352135symtable_raise_if_comprehension_block (struct symtable * st , expr_ty e ) {
21362136 _Py_comprehension_ty type = st -> st_cur -> ste_comprehension ;
2137- PyErr_SetString (PyExc_SyntaxError ,
2137+ PyErr_SetString (PyExc_SyntaxError ,
21382138 (type == ListComprehension ) ? "'yield' inside list comprehension" :
21392139 (type == SetComprehension ) ? "'yield' inside set comprehension" :
21402140 (type == DictComprehension ) ? "'yield' inside dict comprehension" :
@@ -2173,3 +2173,16 @@ _Py_SymtableStringObjectFlags(const char *str, PyObject *filename,
21732173 _PyArena_Free (arena );
21742174 return st ;
21752175}
2176+
2177+ void
2178+ _PySymtable_Fini (void )
2179+ {
2180+ Py_CLEAR (top );
2181+ Py_CLEAR (lambda );
2182+ Py_CLEAR (genexpr );
2183+ Py_CLEAR (listcomp );
2184+ Py_CLEAR (setcomp );
2185+ Py_CLEAR (dictcomp );
2186+ Py_CLEAR (__class__ );
2187+ Py_CLEAR (_annotation );
2188+ }
0 commit comments