]> granicus.if.org Git - postgresql/commit
Fix significant memory leak in contrib/xml2 functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Nov 2010 20:21:00 +0000 (15:21 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Nov 2010 20:21:00 +0000 (15:21 -0500)
commit61f86180169cda1168a2f4829f3289323d7ec7ae
tree5129dff14c878cb199b59d356c299f188d05a934
parentec66f658999c6d19c82f437cc89d1bb0cfda2d80
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