]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] 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:26:13 +0000 (09:26 +0200)
committerGitHub <noreply@github.com>
Wed, 29 May 2024 07:26:13 +0000 (07:26 +0000)
Python/Python-tokenize.c

index 9cc4b45de49f0b63ef303c029a6d21b6c00e10f3..09fad18b5b4df73e332dcd2c3c21ffc2ca8f5afb 100644 (file)
@@ -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);