Skip to content

Commit

Permalink
[3.12] gh-119704: Fix reference leak in the ``Python/Python-tokenize.…
Browse files Browse the repository at this point in the history
…c`` (GH-119705) (#119708)
  • Loading branch information
miss-islington authored May 29, 2024
1 parent 46a37a1 commit a62681c
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 @@ -313,6 +313,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 a62681c

Please sign in to comment.