[issue2784] fast builtin sum may leak

2008-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2784 __ ___ Python-bugs-list mailing list

[issue2784] fast builtin sum may leak

2008-05-07 Thread Jean Brouwers
New submission from Jean Brouwers [EMAIL PROTECTED]: 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

[issue2784] fast builtin sum may leak

2008-05-07 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: There is one other, similar issue in the Modules/imgfile.c file. Line 327 is PyFPE_START_PROTECT(readscaled, return 0) and should probably be PyFPE_START_PROTECT(readscaled, iclose(image); return 0) /Jean Brouwers

[issue2784] fast builtin sum may leak

2008-05-07 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- assignee: - rhettinger nosy: +rhettinger __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2784 __ ___ Python-bugs-list