![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Unassigned |
|
Components:
|
core |
|
Created:
|
20/Apr/14 10:05 AM
|
|
Description:
|
A FileInputStream is not closed in hudson.model.FileParameterValue for "return IOUtils.toByteArray(new FileInputStream(file))".
This is a resource leak.
The FileInputStream should be closed, using finally. For example:
final InputStream input = new FileInputStream(file);
try {
return IOUtils.toByteArray(input);
} finally {
input.close();
}
|
|
Project:
|
Jenkins
|
|
Priority:
|
Major
|
|
Reporter:
|
evernat
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.