We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bafd4f2 + d2fd359 commit 6c10650Copy full SHA for 6c10650
Misc/NEWS
@@ -588,6 +588,8 @@ Core and Builtins
588
589
- Issue #28008: Implement PEP 530 -- asynchronous comprehensions.
590
591
+- Issue #27942: Fix memory leak in codeobject.c
592
+
593
Library
594
-------
595
Objects/codeobject.c
@@ -77,6 +77,7 @@ intern_string_constants(PyObject *tuple)
77
intern_string_constants(v);
78
}
79
else if (PyFrozenSet_CheckExact(v)) {
80
+ PyObject *w = v;
81
PyObject *tmp = PySequence_Tuple(v);
82
if (tmp == NULL) {
83
PyErr_Clear();
@@ -89,6 +90,7 @@ intern_string_constants(PyObject *tuple)
89
90
91
else {
92
PyTuple_SET_ITEM(tuple, i, v);
93
+ Py_DECREF(w);
94
modified = 1;
95
96
0 commit comments