Skip to content

Commit

Permalink
pythongh-119704: Fix reference leak in the ``Python/Python-tokenize.c…
Browse files Browse the repository at this point in the history
…`` (pythonGH-119705)

(cherry picked from commit c0faade)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
  • Loading branch information
Eclips4 authored and miss-islington committed May 29, 2024
1 parent 17d3398 commit 73b14ac
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 73b14ac

Please sign in to comment.