memory leak in libxml2 - fix

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: memory leak in libxml2 - fix
Date: 2010-11-26 08:59:24
Message-ID: AANLkTikFEjsvjgkOao232ePY2+6h1nH+wpZP=Gx32rTJ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

our customer showed a very significant memory leak in xml2.

try to

select xpath_number('<data>' || generate_series || '</data>','/data')
from generate_series(1,500000);

attention! take all memory very fast

It never release a memory allocated for context and doctree.

Regards

Pavel Stehule

Attachment Content-Type Size
xml2memleakfix.diff text/x-patch 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Radosław Smogura 2010-11-26 09:01:24 Re: [JDBC] JDBC and Binary protocol error, for some statements
Previous Message Simon Riggs 2010-11-26 08:44:22 Re: Assertion failure on hot standby