Details
Description
Environment:Windows NT,2000 and higher, Version 2_3_0
There is a memory leak in xml4Com object when accessing xml property.
I narrowed it down to the function GetXML from file XMLDomUtil.cpp.
Buffer allocated by the xmlstream.SysAllocString is never released.
Following is suggested fix:
void GetXML(const DOM_Node &node, _bstr_t &text)
{
xmlstream stream;
stream << node;
text = _bstr_t(stream.SysAllocString(),false);
}