memory leak in libxml2 - fix

Pavel Stehule <pavel.stehule@gmail.com>

From: Pavel Stehule <pavel.stehule@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-11-26T08:59:24Z
Lists: pgsql-hackers

Attachments

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