Skip Menu |

This queue is for tickets about the XML-Xerces CPAN distribution.

Report information
The Basics
Id: 50715
Status: new
Priority: 0/
Queue: XML-Xerces

People
Owner: Nobody in particular
Requestors: pc88mxer [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: fixing a memory leak in XML::Xerces
Date: Wed, 21 Oct 2009 10:48:33 -0500
To: bug-XML-Xerces [...] rt.cpan.org
From: E R <pc88mxer [...] gmail.com>
Hi, I think there is a memory leak in XML::Xerces::XercesDOMParser. In the DESTROY method there should be something like: if ($_[0]->can('cleanup')) { $_[0]->cleanup(); } The setErrorHandler method saves the error handler in the global hash %XML::Xerces::REMEMBER. Likewise for setEntityResolver. The call to cleanup() is needed to remove those references.