Commit 405f32c1 authored by Benjamin Peterson's avatar Benjamin Peterson

plug refleak

parent 18d7d7a2
......@@ -1891,6 +1891,7 @@ builtin_sum(PyObject *self, PyObject *args)
if (PyBytes_Check(result)) {
PyErr_SetString(PyExc_TypeError,
"sum() can't sum bytes [use b''.join(seq) instead]");
Py_DECREF(iter);
return NULL;
}
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