Kaydet (Commit) 405f32c1 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

plug refleak

üst 18d7d7a2
...@@ -1891,6 +1891,7 @@ builtin_sum(PyObject *self, PyObject *args) ...@@ -1891,6 +1891,7 @@ builtin_sum(PyObject *self, PyObject *args)
if (PyBytes_Check(result)) { if (PyBytes_Check(result)) {
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"sum() can't sum bytes [use b''.join(seq) instead]"); "sum() can't sum bytes [use b''.join(seq) instead]");
Py_DECREF(iter);
return NULL; return NULL;
} }
if (PyByteArray_Check(result)) { if (PyByteArray_Check(result)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment