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/ [email protected] | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
