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