[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
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

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
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

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
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

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
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

[issue730473] Add Py_AtInit() startup hook for extenders

2012-06-16 Thread Patrick Miller
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

[issue730473] Add Py_AtInit() startup hook for extenders

2009-05-12 Thread Patrick Miller
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