From 1d457f960b3bb8efe8132b87babba7db4b58813e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 26 Jul 2018 11:23:13 +0100 Subject: Related: rhbz#1602589 silence coverity leaked_storage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iae694be40b32cc3821d326bb362e6091dba19a35 Reviewed-on: https://gerrit.libreoffice.org/58079 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cppu/source/typelib/typelib.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cppu') diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index c586ae2220ea..46238d5481b0 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -555,6 +555,7 @@ extern "C" void typelib_typedescription_newEmpty( osl_atomic_increment( &Init::get().nIndirectTypeDescriptionCount ); #endif pTmp->pType = nullptr; + // coverity[leaked_storage] - this is on purpose } break; @@ -572,6 +573,7 @@ extern "C" void typelib_typedescription_newEmpty( pTmp->aBase.ppTypeRefs = nullptr; pTmp->aBase.ppMemberNames = nullptr; pTmp->pParameterizedTypes = nullptr; + // coverity[leaked_storage] - this is on purpose } break; @@ -588,6 +590,7 @@ extern "C" void typelib_typedescription_newEmpty( pTmp->pMemberOffsets = nullptr; pTmp->ppTypeRefs = nullptr; pTmp->ppMemberNames = nullptr; + // coverity[leaked_storage] - this is on purpose } break; @@ -602,6 +605,7 @@ extern "C" void typelib_typedescription_newEmpty( pTmp->nEnumValues = 0; pTmp->ppEnumNames = nullptr; pTmp->pEnumValues = nullptr; + // coverity[leaked_storage] - this is on purpose } break; @@ -623,6 +627,7 @@ extern "C" void typelib_typedescription_newEmpty( pTmp->pMapMemberIndexToFunctionIndex= nullptr; pTmp->nBaseTypes = 0; pTmp->ppBaseTypes = nullptr; + // coverity[leaked_storage] - this is on purpose } break; @@ -643,6 +648,7 @@ extern "C" void typelib_typedescription_newEmpty( pTmp->pInterface = nullptr; pTmp->pBaseRef = nullptr; pTmp->nIndex = 0; + // coverity[leaked_storage] - this is on purpose } break; @@ -663,6 +669,7 @@ extern "C" void typelib_typedescription_newEmpty( pTmp->ppGetExceptions = nullptr; pTmp->nSetExceptions = 0; pTmp->ppSetExceptions = nullptr; + // coverity[leaked_storage] - this is on purpose } break; -- cgit