Skip site navigation (1) Skip section navigation (2)

pgsql: Fix significant memory leak in contrib/xml2 functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix significant memory leak in contrib/xml2 functions.
Date: 2010-11-26 20:22:17
Message-ID: E1PM4oD-0001TT-80@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Fix significant memory leak in contrib/xml2 functions.

Most of the functions that execute XPath queries leaked the data structures
created by libxml2.  This memory would not be recovered until end of
session, so it mounts up pretty quickly in any serious use of the feature.
Per report from Pavel Stehule, though this isn't his patch.

Back-patch to all supported branches.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=301a822aa0d4c066da06f5d2979699edc14ec0fa

Modified Files
--------------
contrib/xml2/xpath.c |  162 ++++++++++++++++++++++++++++----------------------
1 files changed, 90 insertions(+), 72 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-11-26 22:06:57
Subject: pgsql: Remove bogus use of PGDLLIMPORT.
Previous:From: Bruce MomjianDate: 2010-11-26 19:39:46
Subject: pgsql: Add inet_net_ntop.c as needed by MSVC, per Magnus.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group