summaryrefslogtreecommitdiff
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-11-09 09:43:37 -0500
committerYury Selivanov <yury@magic.io>2016-11-09 09:43:37 -0500
commitf787c90764d8e6d103bd72e50abd91dd84fce917 (patch)
treecff39e715623e3ff6432a42aa8ce5b29c6f82a98 /Objects/codeobject.c
parent211112a670ef495640c550bfdfe309f716bdd640 (diff)
parent6c1065061770e843f55be0506489c931a2cb7e96 (diff)
downloadcpython-git-f787c90764d8e6d103bd72e50abd91dd84fce917.tar.gz
Merge 3.6 (issue #27942)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index b6e5bd3e1e..f7f91a8168 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -77,6 +77,7 @@ intern_string_constants(PyObject *tuple)
intern_string_constants(v);
}
else if (PyFrozenSet_CheckExact(v)) {
+ PyObject *w = v;
PyObject *tmp = PySequence_Tuple(v);
if (tmp == NULL) {
PyErr_Clear();
@@ -89,6 +90,7 @@ intern_string_constants(PyObject *tuple)
}
else {
PyTuple_SET_ITEM(tuple, i, v);
+ Py_DECREF(w);
modified = 1;
}
}