Terry Farnham - 2011-04-07

Hello,

I have this piece of xml:

const char *xmlbuffer="<?xml version=\"1.0\" encoding=\"utf-8\"?><root xmlns=\"urn:schemas-upnp-org:device-1-0\" xmlns:dlna=\"urn:schemas-dlna-org:device-1-0\"><dlna:X_DLNADOC xmlns:dlna=\"urn:schemas-dlna-org:device-1-0\">DMS-1.50</dlna:X_DLNADOC></root>";

When I execute the following code:

IXML_Document *doc = ixmlParseBuffer(xmlbuffer);
ixmlDocument_free(doc);

It results in a memory leak in ixmlparser.c line 2107 where it calls safe_strdup( newElement->namespaceURI );  It's difficult to figure out why.  Is there anyone that could take a look at this and let me know a solution?

Thanks,

Terry