OSDN Git Service

Fix significant memory leak in contrib/xml2 functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Nov 2010 20:20:55 +0000 (15:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Nov 2010 20:20:55 +0000 (15:20 -0500)
commite6fa73e87a3f3aeb4694ad3d20a179fb76e12ce1
tree9808c2703d3298820953bd15b6f6e4cac68afca6
parent317a568c88ee92bb50238f9fe9508803bc81501c
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