xml-xalan-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao, Ke" <kx...@microstrategy.com>
Subject memory leak
Date Thu, 31 Jul 2003 16:22:35 GMT
Hi,
One memory tool shows some memory leak in Xalan. Looks like it happens here:

In XalanTransformer::terminate(), it  call "delete s_xsltInit" at first.
This will free all those global maps such as
XPathEnvSupportDefault::s_externalFunctions.

Then it call several uninstallGlobal() function to free other global tables.
Some of these tables are stored in the global map. e.g.
XalanEXSLTCommonFunctionsInstaller::uninstallGlobal() will try to free the
functions in XPathEnvSupportDefault::s_externalFunctions. Because
XPathEnvSupportDefault::s_externalFunctions is already freed, those
functions are not deleted.

I found this issue on UNIX, and debug on NT. 

Is this a true memory leak?

Thanks a lot,

Kevin.

Mime
View raw message