You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by liujg <li...@prosperity.com.cn> on 2001/04/28 13:16:07 UTC
Memory leak coming from 'DOMString.equals("s1")&&DOMString.equals("s2")'
1)I detected there are memory leak when use the some logic combianation of DOMString::equals().Give examples as below:
a) if (!s.equals("request")&&!s.equals("response")) ...//memory leak
b) if (!s.equals(DOMString("request"))&&!s.equals(DOMString("response"))) ...//memory leak
b)DOMString s1("request"),s2("respone");
if (!s.equals(s1)&&!s.equals(s2)) ...//normally
Both case 1 and 2,Memory leak occurs.not in case 3.
2)After calling XMLPlatformUtils::Terminate() to cleanup Xerces environment,I reinitalize Xerces,that when I try new a DOMParser application run out a exception.I uncertainly consider it's a bug,at least a short.
The Xerces API library that I used is Xerces-c1_3-0-win32 binary distribution downloaded from your site.The IDE is VC++6.0.
My machine run Windows NT,patched SP5.