diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-02-27 14:27:18 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-02-27 16:02:35 +0100 |
commit | b457e8df493aa3ccd380eba481d6996ae342b931 (patch) | |
tree | fd856e15e0c355be644642b5f1e401d4b92546d4 /sot | |
parent | 1142dc2398de2e2be0e057ecb432ad9c8895313a (diff) |
cid#1500380: silence Resource leak
Change-Id: Ib938b921343359b91f42fc68d89bf9eda32132d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130626
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx index 3bf969f5150e..a874b199a856 100644 --- a/sot/source/sdstor/stg.cxx +++ b/sot/source/sdstor/stg.cxx @@ -625,6 +625,8 @@ BaseStorageStream* Storage::OpenStream( const OUString& rName, StreamMode m, boo } else if( !ValidateMode( m, p ) ) p = nullptr; + // coverity[Resource leak : FALSE] - "Create" method is called with STG_STREAM line 620, + // so we won't enter into this "if" block here. if( p && p->m_aEntry.GetType() != STG_STREAM ) { pIo->SetError( SVSTREAM_FILE_NOT_FOUND ); |