mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
[3.12] gh-119704: Fix reference leak in the `Python/Python-tokenize.c
` (GH-119705) (#119708)
This commit is contained in:
parent
46a37a1a92
commit
a62681c405
1 changed files with 1 additions and 0 deletions
|
@ -313,6 +313,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…
Add table
Add a link
Reference in a new issue