cid#1448407 silence Resource leak
Change-Id: Ida523859077abe5904212db44108fa580bb6c60d Reviewed-on: https://gerrit.libreoffice.org/76355 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -1059,6 +1059,7 @@ extern "C"
|
||||
static uno_Environment * initDefaultEnvironment(
|
||||
const OUString & rEnvDcp, void * pContext )
|
||||
{
|
||||
// coverity[leaked_storage : FALSE] - lifetime is controlled by acquire()/release() calls
|
||||
uno_Environment * pEnv = &(new uno_DefaultEnvironment( rEnvDcp, pContext ))->aBase;
|
||||
(*pEnv->acquire)( pEnv );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user