Re: memory leak in libxml2 - fix

From: Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: memory leak in libxml2 - fix
Date: 2010-11-26 10:28:14
Message-ID: AANLkTi=Z6FOV_M90c=L7jSmgwKhJn+Yei3ZopnACr4rv@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 26, 2010 at 17:59, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2010-11-26 10:37:42 ToDo: enhanced diagnostic for plpgsql
Previous Message Radosław Smogura 2010-11-26 09:01:24 Re: [JDBC] JDBC and Binary protocol error, for some statements