diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-05-29 06:56:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 06:56:44 (GMT) |
commit | c0faade891e6ccb61137041fe10cc05e5fa8d534 (patch) | |
tree | ec691d47f4c38ac7a6b0ca9adc801c0fcf9deba3 /Python/Python-tokenize.c | |
parent | a8e35e8ebad8c3bb44d14968aa05d1acbc028247 (diff) | |
download | cpython-c0faade891e6ccb61137041fe10cc05e5fa8d534.zip cpython-c0faade891e6ccb61137041fe10cc05e5fa8d534.tar.gz cpython-c0faade891e6ccb61137041fe10cc05e5fa8d534.tar.bz2 |
gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (#119705)
Diffstat (limited to 'Python/Python-tokenize.c')
-rw-r--r-- | Python/Python-tokenize.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/Python-tokenize.c b/Python/Python-tokenize.c index 9cc4b45..09fad18 100644 --- a/Python/Python-tokenize.c +++ b/Python/Python-tokenize.c @@ -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); |