mirror of
https://github.com/github/codeql.git
synced 2026-03-27 09:48:16 +01:00
10 lines
270 B
Plaintext
10 lines
270 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
|