Commit a99db9b
Fix FileStream leak in ClassPath.IsJmodFile (#1424)
Add using to File.OpenRead in IsJmodFile so the stream is disposed on all return paths, matching the pattern used by the companion IsJarFile method.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 05e9e8f commit a99db9b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments