sot/source/sdstor/stg.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit b457e8df493aa3ccd380eba481d6996ae342b931
Author:     Julien Nabet <[email protected]>
AuthorDate: Sun Feb 27 14:27:18 2022 +0100
Commit:     Julien Nabet <[email protected]>
CommitDate: Sun Feb 27 16:02:35 2022 +0100

    cid#1500380: silence Resource leak
    
    Change-Id: Ib938b921343359b91f42fc68d89bf9eda32132d8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130626
    Tested-by: Julien Nabet <[email protected]>
    Reviewed-by: Julien Nabet <[email protected]>

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

Reply via email to