[Libreoffice-commits] core.git: cppu/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jul 26 11:38:59 UTC 2019


 cppu/source/uno/lbenv.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0b14eaf0546591e2c7be614051bd30b6387805a6
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jul 26 08:51:21 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jul 26 13:38:03 2019 +0200

    cid#1448407 silence Resource leak
    
    Change-Id: Ida523859077abe5904212db44108fa580bb6c60d
    Reviewed-on: https://gerrit.libreoffice.org/76355
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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 );
 


More information about the Libreoffice-commits mailing list