Skip to content

Commit 39f3149

Browse files
Eclips4miss-islington
authored andcommitted
pythongh-119704: Fix reference leak in the Python/Python-tokenize.c (pythonGH-119705)
(cherry picked from commit c0faade) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
1 parent 46a37a1 commit 39f3149

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/Python-tokenize.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ static void
313313
tokenizeriter_dealloc(tokenizeriterobject *it)
314314
{
315315
PyTypeObject *tp = Py_TYPE(it);
316+
Py_XDECREF(it->last_line);
316317
_PyTokenizer_Free(it->tok);
317318
tp->tp_free(it);
318319
Py_DECREF(tp);

0 commit comments

Comments
 (0)