[Python-Dev] We got leaks!
Kevin Jacobs
jacobs@penguin.theopalgroup.com
Fri, 6 Dec 2002 18:35:53 -0500 (EST)
On Fri, 6 Dec 2002, Tim Peters wrote:
> > First minimal test case:
> >
> > class Leaker(object):
> > def __hash__(self): return 1
> >
> > for i in range(10):
> > hash( Leaker() )
> > print '*' * 10, 'total refs:', sys.gettotalrefcount()
>
> This one is clearly a missing decref in slot_tp_hash(), leaking a reference
> to the integer result object. If SourceForge wakes up, I've got a fix ready
> to check in.
Just caught that too. FYI, it is also missing from the last Python 2.2
checkout that I did.
-Kevin
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19 E-mail: jacobs@theopalgroup.com
Fax: (216) 986-0714 WWW: http://www.theopalgroup.com