[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[xml] Memory Leak in xmlParseElementChildrenContentDecl



 

Hi,

  There seems to be a memory leak in the function xmlParseElementChildrenContentDecl (libxml release 28). When I parse the attached document using any of the Api’s provided for DOM/Sax with purify a memory leak is shown for the memory allocated at the following location in function xmlNewDocElementContent

ret = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent));

The memory allocated for b in the attached document is not being freed.

<!ELEMENT aElement (a |b * >

 

Regards

Ashwin Sinha

 

<?xml version="1.0"?>
<!DOCTYPE root [
<!ELEMENT root (#PCDATA)>
<!ELEMENT a ANY>
<!ELEMENT b ANY>
<!--* missing closing bracket in choice *-->
<!ELEMENT aElement (a |b * >
]>
<root>Any content</root>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]