From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 29 May 2024 07:26:13 +0000 (+0200) Subject: [3.13] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (GH-119705... X-Git-Tag: v3.13.0b2~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a9534f595ccd9f2bdea5ceeecb837a82e44c620;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (GH-119705) (#119707) --- diff --git a/Python/Python-tokenize.c b/Python/Python-tokenize.c index 9cc4b45de49f..09fad18b5b4d 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);