File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
src/main/java/com/amazonaws/encryptionsdk/kms Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.3.4
4+
5+ ### Minor Changes
6+
7+ * Removed the KMS client cache, which could result in a memory leak when
8+ decrypting certain malformed ciphertexts. This may reduce performance slightly
9+ in some scenarios.
10+
311## 1.3.3
412
513### Minor Changes
Original file line number Diff line number Diff line change @@ -259,12 +259,10 @@ private RegionalClientSupplier clientFactory() {
259259 AWSKMSClientBuilder builder = templateBuilder_ != null ? cloneClientBuilder (templateBuilder_ )
260260 : AWSKMSClientBuilder .standard ();
261261
262- ConcurrentHashMap <String , AWSKMS > clientCache = new ConcurrentHashMap <>();
263-
264- return region -> clientCache .computeIfAbsent (region , region2 -> {
262+ return region -> {
265263 // Clone yet again as we're going to change the region field.
266- return cloneClientBuilder (builder ).withRegion (region2 ).build ();
267- }) ;
264+ return cloneClientBuilder (builder ).withRegion (region ).build ();
265+ };
268266 }
269267 }
270268
You can’t perform that action at this time.
0 commit comments