diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-29 07:26:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 07:26:13 (GMT) |
commit | 7a9534f595ccd9f2bdea5ceeecb837a82e44c620 (patch) | |
tree | f09a623672cf3cc7a443f272d57098f3832b0ea1 /Python/Python-tokenize.c | |
parent | 17d3398486dcbc6f5e977bf4c052d7780013c074 (diff) | |
download | cpython-7a9534f595ccd9f2bdea5ceeecb837a82e44c620.zip cpython-7a9534f595ccd9f2bdea5ceeecb837a82e44c620.tar.gz cpython-7a9534f595ccd9f2bdea5ceeecb837a82e44c620.tar.bz2 |
[3.13] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (GH-119705) (#119707)
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); |