From f4ccf5da912a8cb33971cfd2f2276e90a0571d0b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 28 Aug 2022 14:55:51 +0100 Subject: cid#1500658 silence Resource leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I799c44990d2a2cca3b843c3c64774d4d49e4a8b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138946 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sot/source/sdstor/stg.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sot') diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx index 08af343092fa..cebade94f654 100644 --- a/sot/source/sdstor/stg.cxx +++ b/sot/source/sdstor/stg.cxx @@ -579,6 +579,7 @@ BaseStorage* Storage::OpenStorage( const OUString& rName, StreamMode m, bool bDi if( p && p->m_aEntry.GetType() != STG_STORAGE ) { pIo->SetError( SVSTREAM_FILE_NOT_FOUND ); + // coverity[overwrite_var] - ownership is not here, but with StgDirStrm p = nullptr; } -- cgit