Commit 78946bf
committed
fix: close URL stream via try-with-resources in ExtensionUtil
in.close() not in finally; exception during readLine() leaks the underlying HTTP connection; use try-with-resources to guarantee closure on all paths
Signed-off-by: Nico Piel <nico.piel@hotmail.de>1 parent 4200949 commit 78946bf
1 file changed
Lines changed: 6 additions & 7 deletions
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | | - | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
0 commit comments