Skip to content

Commit

Permalink
[3.13] pythongh-119704: Fix reference leak in the ``Python/Python-tok…
Browse files Browse the repository at this point in the history
  • Loading branch information
miss-islington authored May 29, 2024
1 parent 17d3398 commit 7a9534f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/Python-tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7a9534f

Please sign in to comment.