[Python-3000] reference leak when pressing Enter at interpreter prompt
Brett Cannon
brett at python.org
Fri Feb 2 07:07:07 CET 2007
On 2/1/07, Adam Olsen <rhamph at gmail.com> wrote:
> On 1/31/07, Georg Brandl <g.brandl at gmx.net> wrote:
> > Brett Cannon schrieb:
> > > Seems two references are leaking every time you press Enter at the
> > > interpreter prompt in a debug build. Anyone have an inkling of who
> > > introduced it?
> >
> > If anyone wants to look into it:
> > It was rev. 53421, the merging of the long-int-unification branch.
>
> long_richcompare doesn't Py_DECREF a and b allocated by CONVERT_BINOP.
> This exists in 53421 (and presumably earlier) by doing "1L == 2L" at
> the interpreter prompt. There might be another function or two with
> the same bug.
>
Thanks for the debugging, Adam. I personally don't have time right
now to dig in to verify and patch, but hopefully someone does. Else I
will try to get to it at some point between now and the end of PyCon.
-Brett
More information about the Python-3000
mailing list