Peter Dunkley writes:
My thought at the time was that it could be used to run things like pres_auth_status() (xcap_auth_status() in utils) for blocking of IMs and calls based on the contents of XML documents without having to run the full set of presence modules.
that was exactly the reason i wrote the function. it is ok with me to apply the memory leak fix.
-- juha