in reply to Re^8: XML::LibXML memory leak
in thread XML::LibXML memory leak

What data do you want to extract from each element? ->textValue?

Replies are listed 'Best First'.
Re^10: XML::LibXML memory leak
by spstansbury (Monk) on Dec 09, 2010 at 19:12 UTC

    I stayed with the XPathContext method ->find and added the ->to_literal;

    $av = $cve_xc->find('cvss:access-vector', $metrics)->to_literal;

    which is working just fine.

    Thank you for the insight into freeing the tree, that was the issue that I just wasn't seeing!

    Scott...

      For my own info, you didn't have to do anything but ->to_literal to avoid the memory usage, right?