Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Hello!
I was taking a look at how regex was handled in this plugin, and ran across this:
It looks like the plugin never actually calls close on either reader. This will leak file handles and potentially system/OS buffers for each build log (and build logs can get huge).
This method should close the outside wrapper / buffered reader.
Submitted a PR to the project to add a try/finally block.
https://github.com/jenkinsci/naginator-plugin/pull/12