[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [xml] Memory reference after xmlFree in XPath evaluation



On Fri, Apr 04, 2003 at 10:59:32AM +0100, Brian Stafford wrote:
> The problem arises when func() generates a node-set from scratch rather than 
> merely referencing nodes in the document being processed.  In this case the 
> function will use code like

  First, what version are you using ? CVS ?
  Second what function() generate that node set, where do the node
comes from ? The function is responsible to provide the persistency 
of that set of node.

> as is the case in some libexslt code.  During evaluation of the XPath filter 

  Which function creates nodes ?
The problem is the lifetime of the nodes. It's a VERY HARD problem indeed.
Without precise examples it won't get anywhere. If your code creates
node to return them into node set, it better provide persistency for those.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]