diff options
author | Ade Lee <alee@redhat.com> | 2013-03-08 09:29:02 -0500 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2013-03-08 21:26:30 -0500 |
commit | ddc391f574fff16f84cfa485c09ebc495f654340 (patch) | |
tree | 11400da443e222716cb68d22b74ba108347e2fed /base/ocsp/src | |
parent | b953c172bf274352c628ffef7d3ef0ef4c9ce59d (diff) | |
download | pki-ddc391f574fff16f84cfa485c09ebc495f654340.tar.gz pki-ddc391f574fff16f84cfa485c09ebc495f654340.tar.xz pki-ddc391f574fff16f84cfa485c09ebc495f654340.zip |
Plug resource leaks
Diffstat (limited to 'base/ocsp/src')
-rw-r--r-- | base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java index 836907dac..eb9060663 100644 --- a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java +++ b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java @@ -429,8 +429,7 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem, */ public BasicOCSPResponse sign(ResponseData rd) throws EBaseException { - try { - DerOutputStream out = new DerOutputStream(); + try (DerOutputStream out = new DerOutputStream()) { DerOutputStream tmp = new DerOutputStream(); String algname = mSigningUnit.getDefaultAlgorithm(); |