diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-07-30 03:43:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-07-30 03:43:45 (GMT) |
commit | 405f32c14c46672758217ebc4289607025fbb57f (patch) | |
tree | 6a2300ecdc4c5d7caa0fb4008ec4ed275ffdf3a3 /Python | |
parent | 18d7d7a2176e169942d5764516eee6f952610884 (diff) | |
download | cpython-405f32c14c46672758217ebc4289607025fbb57f.zip cpython-405f32c14c46672758217ebc4289607025fbb57f.tar.gz cpython-405f32c14c46672758217ebc4289607025fbb57f.tar.bz2 |
plug refleak
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 064b847..152210b 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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)) { |