Re: [xslt] Memory leak if compiled with XSLT_LOCALE_WINAPI



Daniel, as I see you currently working on the library, would you
hopefully have some time to look into the following memory leak I
reported about 2 month ago?

Thank you,

Ralf

On 17.12.2010 18:28, Ralf Junker wrote:

> 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]