title: Exit for loop inside using keyword
body: <p>I am using a tool (Fortify), which is detecting a vulnerability in the following block of code:</p>
  <pre><code>For Each member As Object In CType(members, IEnumerable)
      Using x As DirectoryEntry = New DirectoryEntry(member)
           Dim name As String = x.Name
           If name &lt;&gt; deUser.Name Then
               isGroupMember = False
           Else
               isGroupMember = True
               Exit For
           End If
      End Using
  Next member
  </code></pre>
  <p>It mentions that fails to release an LDAP resource (var X), due to the &quot;Exit For&quot;.</p>
  <p>As far as I know, statement  &quot;using&quot; dispose the object although don't execute all the block code.
  Is that right?
  Or should it be done differently?</p>
  <p>I Think is maybe a false-positive issue.</p>