Patrick Miller added the comment:
This is also in the 2.7.x branch. Same patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23590
Patrick Miller added the comment:
Here's a simple recreator... It returns a 100-meg string instead of a float.
The memory is leaked each time through the loop
--
Added file: http://bugs.python.org/file38343/recreate.tar
___
Python tracker rep
Patrick Miller added the comment:
Shout out to amaury for a much simpler recreator :-)
Checked to see if the int conversion suffered the same problem... it does not
as it is structured somewhat differently. Note that it DOES do the proper
DECREF (missing in PyFloat_AsDouble).
result
New submission from Patrick Miller:
There is a reference counting error in PyFloat_AsDouble.
When the function calls the nb_float conversion, if the method does not return
an actual float object, an exception is set, but the object is not collected.
--- Objects/floatobject.c 2014-10-08
Patrick Miller patmil...@users.sourceforge.net added the comment:
Just languishing for lo on these 5 years
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue730473
Patrick Miller patmil...@users.sourceforge.net added the comment:
Thanks... I'll submit patches for 2.6, 2.7, and 3.2
On Tue, May 12, 2009 at 2:07 PM, Daniel Diniz rep...@bugs.python.org wrote:
Changes by Daniel Diniz aja...@gmail.com:
--
stage: - test needed
versions: +Python