This function leaks memory.

I think it needs to be matched with something like;

void charset_shutdown ()
{
        xmlCleanupEncodingAliases ();
}

Because

* This is the way all other _init/_shutdown pairs work
* You never know who might call charset_init() from and when.

Paul Keogh
ANAM Wireless Internet Solutions
http://www.anam.com                     
+353 1 284 7555 (wired)               +353 86 234 6047 (wireless)
Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland
 

Reply via email to