Skip to content

Commit abe3a6b

Browse files
Eclips4noahbkim
authored andcommitted
pythongh-119704: Fix reference leak in the Python/Python-tokenize.c (python#119705)
1 parent 4e817f4 commit abe3a6b

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
@@ -311,6 +311,7 @@ static void
311311
tokenizeriter_dealloc(tokenizeriterobject *it)
312312
{
313313
PyTypeObject *tp = Py_TYPE(it);
314+
Py_XDECREF(it->last_line);
314315
_PyTokenizer_Free(it->tok);
315316
tp->tp_free(it);
316317
Py_DECREF(tp);

0 commit comments

Comments
 (0)