XML without seg error but with memory leaks from xerces memory manager