comparison src/main/java/org/monetdb/jdbc/MonetConnection.java @ 924:ace9f8f617f1

In close() also set clientInfoAttributeNames = null; so it can be gc-ed.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Wed, 31 Jul 2024 20:47:06 +0200 (8 months ago)
parents ce6bc9908735
children d416e9b6b3d0
comparison
equal deleted inserted replaced
923:3b29fb3f537a 924:ace9f8f617f1
293 public void close() { 293 public void close() {
294 if (closed) 294 if (closed)
295 return; 295 return;
296 296
297 clearWarnings(); 297 clearWarnings();
298 clientInfoAttributeNames = null;
298 dbmd = null; 299 dbmd = null;
299 synchronized (server) { 300 synchronized (server) {
300 // Note: An entry in a WeakHashMap will automatically be 301 // Note: An entry in a WeakHashMap will automatically be
301 // removed when its key is no longer in ordinary use. 302 // removed when its key is no longer in ordinary use.
302 for (Statement st : statements.keySet()) { 303 for (Statement st : statements.keySet()) {