Re: [xml] Freeing of input passed to Function: xmlIOParseDTD



On Tue, Jan 16, 2007 at 04:20:54PM +0530, Jaya Kumar wrote:
Hi,

      In the API reference section of xmlIOParseDTD (xmlSAXHandlerPtr
<http://xmlsoft.org/html/libxml-tree.html#xmlSAXHandlerPtr>  sax, 
 
xmlParserInputBufferPtr
<http://xmlsoft.org/html/libxml-tree.html#xmlParserInputBufferPtr>  input, 
 
xmlCharEncoding
<http://xmlsoft.org/html/libxml-encoding.html#xmlCharEncoding>  enc) 

there is note saying - @input will be freed by the function in any case

      But when I went through the SourceCode of the version 2.6.23, I found
that it is not getting freed in all the cases. For example - 

  I'm afraid that by using old version, you also beneficied from old
bugs, which are fixed since.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



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