diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-28 14:55:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-28 21:12:21 +0200 |
commit | f4ccf5da912a8cb33971cfd2f2276e90a0571d0b (patch) | |
tree | 470f98ce6a2d61d62ea7fe216d6e5b7a0aff8c14 /sot | |
parent | 02663c8ba0cfe6bf71070ed2e02d13f1ced895d4 (diff) |
cid#1500658 silence Resource leak
Change-Id: I799c44990d2a2cca3b843c3c64774d4d49e4a8b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138946
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stg.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |