https://github.com/python/cpython/commit/a62681c4055f62484efe1edc2446fc4cce5c2bf0
commit: a62681c4055f62484efe1edc2446fc4cce5c2bf0
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-05-29T07:18:04Z
summary:

[3.12] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` 
(GH-119705) (#119708)

files:
M Python/Python-tokenize.c

diff --git a/Python/Python-tokenize.c b/Python/Python-tokenize.c
index cb050e77b1520d..664e7d8a50af8c 100644
--- a/Python/Python-tokenize.c
+++ b/Python/Python-tokenize.c
@@ -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);

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to