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>
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user