summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-26 08:51:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-26 13:38:03 +0200
commit0b14eaf0546591e2c7be614051bd30b6387805a6 (patch)
tree356f1c601dfb8c19305ef10e1455be5640155c80 /cppu
parent12ee6bef988975bdeead7840f3aa565b06d37bf6 (diff)
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>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/uno/lbenv.cxx1
1 files changed, 1 insertions, 0 deletions
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 );