Hello,

Scan coverity detected this:
leaked_storage: Variable "lib" going out of scope leaks the storage it
points to. line 236
(see
http://opengrok.libreoffice.org/xref/core/javaunohelper/source/javaunohelper.cxx#236)
I just thought adding 
osl_unloadModule(lib) just before line 235, so last line of the block if
(lib)

Now I'm not sure because I don't know at all the mechanism of modules and
wonder if the declaration of "lib" would do the trick:
oslModule lib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_LAZY |
SAL_LOADMODULE_GLOBAL );
Would " SAL_LOADMODULE_LAZY" mean unload "automagically" when necessary for
example?

Julien 



--
View this message in context: 
http://nabble.documentfoundation.org/About-coverity-705665-javaunohelper-cxx-tp4043372.html
Sent from the Dev mailing list archive at Nabble.com.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to