Re: [xml] correct version of libxml2
- From: Daniel Veillard <veillard redhat com>
- To: Marco Rogers <marco rogers gmail com>
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] correct version of libxml2
- Date: Tue, 26 Apr 2011 21:59:32 +0800
On Mon, Apr 25, 2011 at 08:33:18AM -0700, Marco Rogers wrote:
Daniel:
Can you shed a little more light on why this call isn't always needed? In what situations is it necessary
to call it?
This frees up a few global variables allocated by libxml2. A few
kilobytes at most, but if they get deallocated while somehow the library
is still in use, the application is very likely to crash.
So never call this in a library.
In an app the only safe place to call it is close to the exit
It's still useful to make sure there is no memory leak when running a
program under valgrind or equivalent memory checker.
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]