(http://mail.gnome.org/archives/xml/2011-April/msg00048.html)
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.
Cool, huh?!
I think it's worthwhile to emphasize the thought:
NEVER EVER FUCKING CALL xmlCleanupParser() IN A LIBRARY!