mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
11 lines
276 B
Plaintext
11 lines
276 B
Plaintext
import cil
|
|
import semmle.code.csharp.commons.Disposal
|
|
import Whitelist
|
|
|
|
from CIL::Field field
|
|
where
|
|
mayBeDisposed(field) and
|
|
field.getName().charAt(0) = "_" and // Filter the results a little
|
|
not whitelistedType(field.getDeclaringType())
|
|
select field.getQualifiedName()
|