mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 23:25:52 +00:00
[FIXED JENKINS-18351] Better fix for file handle leak.
This commit is contained in:
1 parent
66cc975fba
commit
7f966f6f31
2 files changed
+8
-4
No files matched your search
@@ -554,7 +554,11 @@ public class Util {
|
||||
* @see DigestUtils#md5(InputStream)
|
||||
*/
|
||||
public static String getDigestOf(InputStream source) throws IOException {
|
||||
return DigestUtils.md5Hex(source);
|
||||
try {
|
||||
return DigestUtils.md5Hex(source);
|
||||
} finally {
|
||||
source.close();
|
||||
}
|
||||
}
|
||||
|
||||
public static String getDigestOf(String text) {
|
||||
|
||||
Reference in new issue
Block a user