[pypy-issue] [issue707] PyPy memory leak in 1.5 on OSX

Justin Peel tracker at bugs.pypy.org
Fri Sep 16 06:16:09 CEST 2011

Justin Peel <peelpy at gmail.com> added the comment:

I think that the problem lies with line 404 of pypy/module/pyexpat_interp.py. 
CallbackData is created and put into the global_storage class's dict, but it is 
never deleted as far as I can tell. The only call to 
global_storage.free_nonmoving_id is in the __del__ of W_XMLParserType and then 
it casts the pointer itself to an int rather than using the id. It seems like 
using self.id there instead should get rid of the problem. What do you think?

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list