Hi! It seems xmlCleanupParser only cleans up if you call xmlInitParser first. If you add a call to the latter in the beginning of your code, all Valgrind errors seem to be gone.
Whether that's the intended behavior of libxml2 or not, I don't know. -- Adiel Mittmann _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml