Réf. : Re: [xml] Memory leaks in libxml 1.7.2

Date view Thread view Subject view Author view

From: Gilles FILIPPINI (Gilles.Filippini@edf.fr)
Date: Wed Nov 24 1999 - 08:12:24 EST


Well, I didn't look at the code (so please, forgive me if I'm wrong) but there must be a
way of doing this initialization via a static data structure (since its size is known at the
compilation step) so that the space allocated for it would be released as soon as
the program exit and without any explicit call.

- Gilles.

Daniel.Veillard@w3.org sur 24/11/99 13:50:00
Pour : xml@rufus.w3.org@hub
cc : Daniel.Veillard@w3.org@hub (ccc : Gilles FILIPPINI/SEPTEN/DE/EDFGDF/FR)
Objet : Re: [xml] Memory leaks in libxml 1.7.2

On Wed, Nov 24, 1999 at 01:15:15PM +0100, Andrea LUCIANO wrote:
> There are memory leaks in libxml 1.7.2 (in encoding.c allocating space for
 handler, line 391 420).
> Are they fixed in later versions?

  Well this is well known, and basically this memory is allocated
when initializing the global encoding infrastructure for the parser.
This sums up as 241 bytes, so I negelected it for the moment,
the proper way to do it would be to provide a cleanup fonction
to be called at the end of the usage of the XML library.
  I will try to implement it but applications will have to explicitely
call it at the end of processing ,

  Daniel

--
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe.
----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org

---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:52 EDT