From b457e8df493aa3ccd380eba481d6996ae342b931 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 27 Feb 2022 14:27:18 +0100 Subject: cid#1500380: silence Resource leak Change-Id: Ib938b921343359b91f42fc68d89bf9eda32132d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130626 Tested-by: Julien Nabet Reviewed-by: Julien Nabet --- sot/source/sdstor/stg.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sot') 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 ); -- cgit