mirror of https://github.com/python/cpython
gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (#119705)
This commit is contained in:
parent
a8e35e8eba
commit
c0faade891
|
@ -311,6 +311,7 @@ static void
|
|||
tokenizeriter_dealloc(tokenizeriterobject *it)
|
||||
{
|
||||
PyTypeObject *tp = Py_TYPE(it);
|
||||
Py_XDECREF(it->last_line);
|
||||
_PyTokenizer_Free(it->tok);
|
||||
tp->tp_free(it);
|
||||
Py_DECREF(tp);
|
||||
|
|
Loading…
Reference in New Issue