mirror of https://github.com/python/cpython
GH-90699: Clear interned strings in `_elementtree` (#101185)
This commit is contained in:
parent
8cdbc46090
commit
9109d46051
|
@ -122,6 +122,16 @@ elementtree_clear(PyObject *m)
|
|||
Py_CLEAR(st->elementpath_obj);
|
||||
Py_CLEAR(st->comment_factory);
|
||||
Py_CLEAR(st->pi_factory);
|
||||
|
||||
// Interned strings
|
||||
Py_CLEAR(st->str_append);
|
||||
Py_CLEAR(st->str_find);
|
||||
Py_CLEAR(st->str_findall);
|
||||
Py_CLEAR(st->str_findtext);
|
||||
Py_CLEAR(st->str_iterfind);
|
||||
Py_CLEAR(st->str_tail);
|
||||
Py_CLEAR(st->str_text);
|
||||
Py_CLEAR(st->str_doctype);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue