From 0b14eaf0546591e2c7be614051bd30b6387805a6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 26 Jul 2019 08:51:21 +0100 Subject: cid#1448407 silence Resource leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ida523859077abe5904212db44108fa580bb6c60d Reviewed-on: https://gerrit.libreoffice.org/76355 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cppu/source/uno/lbenv.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'cppu') diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index 8d0ae9c44f5c..55b513a9d5de 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -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 ); -- cgit