#vulnerable code 
                             private byte[] unHashBlockStream(SafeInputStream decryptedStream) throws IOException {
		HashedBlockInputStream hashedBlockInputStream = new HashedBlockInputStream(decryptedStream);
		byte[] hashedBlockBytes = StreamUtils.toByteArray(hashedBlockInputStream);
		return hashedBlockBytes;
	} 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             private byte[] unHashBlockStream(SafeInputStream decryptedStream) throws IOException {
		HashedBlockInputStream hashedBlockInputStream = new HashedBlockInputStream(decryptedStream);
		return StreamUtils.toByteArray(hashedBlockInputStream);
	}