Skip to content

Commit

Permalink
'ThreadLocal.set()' with null as an argument may cause memory leak, c…
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonDoe15 committed Oct 5, 2023
1 parent 8448625 commit 680d844
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static void clearFactoriesCache() {
}

public static void clearThreadLocalContext() {
SSL_CONTEXT_THREAD_LOCAL.set(null);
SSL_CONTEXT_THREAD_LOCAL.remove();
}

public static void editJmxConnectorEnv(Map<String, Object> env) {
Expand Down

0 comments on commit 680d844

Please sign in to comment.