-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Bug in code logic
If an exception occurs before the stream is closed there will be a resource leak since close() won't be called. Use try-finally pattern.
private void parse(java.io.File file, SloccountReportInterface report) throws IOException { InputStreamReader in = new InputStreamReader(new FileInputStream(file), encoding); this.parse(in, report); in.close(); }
[JENKINS-21229] Possible resource leak in parser
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 153092 ] | New: JNJira + In-Review [ 207295 ] |
Fixed in https://github.com/mixalturek/sloccount-plugin/commit/22fe90021f243b01905e0b4c5ba6f5e03208ac9b.