Re: [xml] Memory leak with xmlFindCharEncodingHandler



On Wed, Aug 25, 2004 at 09:33:13AM +0300, Vjacheslav Chekushin wrote:
Problem is that in case when handler for charset is not registred, than
iconv handler will be allocated in libxml2, but doesn't freed by this code.
On other side we can't free any handler because in can be one from registred
handlers.

How I can solve this problem? Is there documented way how to know is this
handler was allocated or got from registred handlers?

  xmlCharEncodingHandler is a public structure. Look at it in
    include/libxml/encoding.h
Use xmlCharEncCloseFunc() anyway It's part of the API.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
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]