Memory leak if compiled with XSLT_LOCALE_WINAPI

Ralf Junker <[email protected]>
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
If xsltlocale.c is compiled with XSLT_LOCALE_WINAPI #defined, the
following lines allocate memory which is not freed by xsltCleanupGlobals():

xslt.c, 238:       xsltLocaleMutex = xmlNewRMutex();

xsltlocale.c, 508: xsltLocaleList = xmlMalloc(len);

I can see a few places where this could be implemented, but I am not
sure which would best suite the existing code base. The following calles
are missing IMHO:

    xmlRMutexLock(xsltLocaleMutex);
    xmlFree(xsltLocaleList);
    xsltLocaleList = NULL;
    xmlRMutexUnlock(xsltLocaleMutex);

    xmlFreeRMutex(xsltLocaleMutex);
    xsltLocaleMutex = NULL;

Could anyone point me to the correct place?

Many thanks,

Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.