tenderlove/nokogiri — pull request #606 by waj (2012-01-31 02:18:45+00:00)
Title: Fix memory leak when XPath function returns a string

Please VERIFY and let's discuss about this. I think the fix is correct, but just in case...

The ```NOKOGIRI_STR_NEW2``` it's duplicating the string and the ```xpath->stringval``` is not released because ```xmlXPathFreeNodeSetList``` is used at the end of the ```evaluate``` function, and I checked the libxml source and it just releases the ```xmlXPathObject``` struct.