mirror of
https://github.com/github/codeql.git
synced 2026-03-30 12:18:18 +02:00
11 lines
272 B
Plaintext
11 lines
272 B
Plaintext
import dotnet
|
|
import semmle.code.csharp.commons.Disposal
|
|
import Whitelist
|
|
|
|
from DotNet::Callable c, DotNet::Parameter param, int p
|
|
where
|
|
mayBeDisposed(param) and
|
|
param = c.getParameter(p) and
|
|
not whitelistedType(c.getDeclaringType())
|
|
select c.toStringWithTypes(), p
|