Skip to content

Commit 7a9534f

Browse files
[3.13] gh-119704: Fix reference leak in the Python/Python-tokenize.c (GH-119705) (#119707)
1 parent 17d3398 commit 7a9534f

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)