Re: [xml] XPath Memory Leak

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Jul 13 2000 - 17:34:03 EDT


On Thu, Jul 13, 2000 at 04:03:27PM -0400, Tim Ruddick wrote:
>
> The XPath implementation has improved *dramatically* in v2.1.1! Many
> thanks to whomever was responsible!

  Namely people at Picdar Technology

> I noticed something in the xmlXPathFreeContext function, and I'm wondering
> if there's a reason for it. The snippet of code that deallocates the
> memory for the context nodeset is commented out. This means every call to
> xmlXPathEval leaks at least 40 bytes (the size of the context->nodeTab
> array). Should I be deallocating this memory outside of the FreeContext
> function?

  yep someone I commented out because I felt this should not
happen there. Right it removed one leak.
  Make XPathtests with memory debug enabled still show at least
one more though ...

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:22 EDT