libupnp/ixml
Yoichi NAKAYAMA 2c7658f98a SF Bug Tracker id 3325246 - Memory Leak in XML Parser
Submitted: Terry Farnham ( tfarnham ) - 2011-06-23 09:45:54 PDT

Details: The following bit of xml results in a memory leak from the xml
parser:

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.
(cherry picked from commit d6f1e4112e)
2012-03-05 17:01:26 -03:00
..
doc Removing unnecessary additional directory level. 2006-07-04 02:44:17 +00:00
inc ixml: Fix for compiler warnings for size_t and ptrdiff_t. 2010-11-16 03:15:49 -02:00
src SF Bug Tracker id 3325246 - Memory Leak in XML Parser 2012-03-05 17:01:26 -03:00
test "make check" was failing because ixml/test/test_document.sh did not 2007-11-12 03:27:58 +00:00
Makefile.am UTF-8. 2010-10-04 11:13:46 -03:00