Re: memory leak in libxml2 - fix - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: memory leak in libxml2 - fix
Date
Msg-id AANLkTi=Z6FOV_M90c=L7jSmgwKhJn+Yei3ZopnACr4rv@mail.gmail.com
Whole thread Raw
In response to memory leak in libxml2 - fix  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: memory leak in libxml2 - fix
List pgsql-hackers
On Fri, Nov 26, 2010 at 17:59, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> our customer showed a very significant memory leak in xml2.
> It never release a memory allocated for context and doctree.

Why did you change doctree and ctxt to global variables?
I'm not sure why /* xmlFreeDoc(doctree); */ is commented out
at the end of pgxml_xpath(), but is it enough to enable the code?

-- 
Itagaki Takahiro


pgsql-hackers by date:

Previous
From: Radosław Smogura
Date:
Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements
Next
From: Pavel Stehule
Date:
Subject: ToDo: enhanced diagnostic for plpgsql