Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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

Report information
The Basics
Id: 38028
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: tokuhirom+cpan [...] gmail.com
Cc:
AdminCc:

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



Subject: getChildrenByTagNameNS cause memory leaks
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 657
Download (untitled) / with headers
text/plain 657b
getChildrenByTagNameNS cause memory leaks. my libxml version is 2.6.27. leak code is here: use strict; use warnings; use XML::LibXML; my $doc = XML::LibXML::Document->new('1.0', 'utf8'); while(1) { my $title = $doc->createElement('title'); $title->getChildrenByTagNameNS('http://purl.org/atom/ns#', 'title'); } patch is here: --- LibXML.xs.orig 2008-07-30 08:49:37.000000000 +0900 +++ LibXML.xs 2008-07-30 08:53:12.000000000 +0900 @@ -4205,6 +4205,8 @@ if ( wantarray == G_SCALAR ) { XPUSHs(sv_2mortal(newSViv(len)) ); } + xmlFree(name); + xmlFree(nsURI); SV* firstChild( self ) regards.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-31289-1217406355-1406.38028-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 48
This issue is already fixed in the SVN. -- Petr


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.