[New-bugs-announce] [issue2784] fast builtin sum may leak
Jean Brouwers
report at bugs.python.org
Wed May 7 21:45:39 CEST 2008
New submission from Jean Brouwers <MrJean1 at Gmail.com>:
The new, fast builtin sum implementation may cause a memory leak in the
float loop. Both lines
PyFPE_START_PROTECT("add", return 0)
should be changed to
PyFPE_START_PROTECT("add", Py_DECREF(item); Py_DECREF(iter); return
0)
The attached file bltinmodule1.c.diff contain a patch to that extent.
/Jean Brouwers
----------
components: Interpreter Core
files: bltinmodule1.c.diff
keywords: patch
messages: 66368
nosy: MrJean1
severity: normal
status: open
title: fast builtin sum may leak
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file10209/bltinmodule1.c.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2784>
__________________________________
More information about the New-bugs-announce
mailing list