mirror of
https://github.com/github/codeql.git
synced 2026-07-14 15:58:16 +02:00
14 lines
283 B
C#
14 lines
283 B
C#
using System;
|
|
using System.IO;
|
|
|
|
class Bad : IDisposable
|
|
{
|
|
private FileStream stream1 = new FileStream("a.txt", FileMode.Open);
|
|
private FileStream stream2 = new FileStream("b.txt", FileMode.Open);
|
|
|
|
public void Dispose() // $ Alert
|
|
{
|
|
stream1.Dispose();
|
|
}
|
|
}
|