• Tom Lane's avatar
    Fix significant memory leak in contrib/xml2 functions. · 4a2516a7
    Tom Lane authored
    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.
    4a2516a7
xpath.c 18.7 KB