Subject: | memory leak in XML::Smart |
Date: | Fri, 28 Jul 2006 11:07:06 +0200 |
To: | bug-XML-Smart [...] rt.cpan.org |
From: | Ol'ga <olga82 [...] gmail.com> |
I think I discovered a memory leak in XML::Smart. Here's what I do. I have
a huge text file, one complete xml structure per line (big lines!). I
read from that file line by line and use XML::Smart to extract some
information, change the xml structure, and write it to a new file. This
means that on every iteration (for every line in my input file), I
call new() with the string containing the xml ... I'm explicitly
calling the destructor before doing that ($xmldep->DESTROY()) to make
sure the old object doesn't linger in memory (I added it after seeing
a leak, so yes, it leaks without the call to DESTROY as well). And
still, I see the memory use go up up up until the script crashes.
thanks,
--
-ol'ga