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:
Caolán McNamara
2019-07-26 13:38:03 +02:00
parent 12ee6bef98
commit 0b14eaf054
+1
View File
@@ -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 );