]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix significant memory leak in contrib/xml2 functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Nov 2010 20:21:08 +0000 (15:21 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Nov 2010 20:21:08 +0000 (15:21 -0500)
commitcfb6ac6ba2fd2c9dc6e27acb6930a155c1685155
tree35640e00e13fed4f99ebc9b856a3d792628d8663
parenteaf0766d74ebf5975fc07344abb2bea599329d7e
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.
contrib/xml2/xpath.c