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

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
Use xmlCharEncCloseFunc() anyway It's part of the API.


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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