[SDO C++] Leaking libxml memory

2006-10-11 Thread Caroline Maynard
One of our PHP users has reported a problem with leaking memory from libxml2. I started to investigate, but realised that the issue is independent of PHP, and can be reproduced in a standalone Tuscany environment. The issue is that memory allocated by libxml2 is not being freed, so he is

Re: [SDO C++] Leaking libxml memory

2006-10-11 Thread Pete Robbins
Ah yes. I have a fix for this. It is caused by the SDOXMLString::substring method creating 2 copies of the string and only freeing one of them. this method is called when parsing the QName string in type=fred:joe so we end up with an extra fred and joe when this is called. I will raise a Jira

Re: [SDO C++] Leaking libxml memory

2006-10-11 Thread Pete Robbins
fixed - http://issues.apache.org/jira/browse/TUSCANY-825 On 11/10/06, Pete Robbins [EMAIL PROTECTED] wrote: Ah yes. I have a fix for this. It is caused by the SDOXMLString::substring method creating 2 copies of the string and only freeing one of them. this method is called when parsing the