From ddc391f574fff16f84cfa485c09ebc495f654340 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Fri, 8 Mar 2013 09:29:02 -0500 Subject: Plug resource leaks --- base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'base/ocsp/src') 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(); -- cgit