mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merge 3.6 (issue #27942)
This commit is contained in:
commit
f787c90764
2 changed files with 4 additions and 0 deletions
|
@ -588,6 +588,8 @@ Core and Builtins
|
||||||
|
|
||||||
- Issue #28008: Implement PEP 530 -- asynchronous comprehensions.
|
- Issue #28008: Implement PEP 530 -- asynchronous comprehensions.
|
||||||
|
|
||||||
|
- Issue #27942: Fix memory leak in codeobject.c
|
||||||
|
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,7 @@ intern_string_constants(PyObject *tuple)
|
||||||
intern_string_constants(v);
|
intern_string_constants(v);
|
||||||
}
|
}
|
||||||
else if (PyFrozenSet_CheckExact(v)) {
|
else if (PyFrozenSet_CheckExact(v)) {
|
||||||
|
PyObject *w = v;
|
||||||
PyObject *tmp = PySequence_Tuple(v);
|
PyObject *tmp = PySequence_Tuple(v);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
|
@ -89,6 +90,7 @@ intern_string_constants(PyObject *tuple)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PyTuple_SET_ITEM(tuple, i, v);
|
PyTuple_SET_ITEM(tuple, i, v);
|
||||||
|
Py_DECREF(w);
|
||||||
modified = 1;
|
modified = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue