]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (GH-119705...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 May 2024 07:18:04 +0000 (09:18 +0200)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 07:18:04 +0000 (07:18 +0000)
Python/Python-tokenize.c

index cb050e77b1520de1aad8c7f022b06c06b84ea1ef..664e7d8a50af8c43ebdfc042303f9e6a84ecdc28 100644 (file)
@@ -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);