From 8e611587587cb74483cd5a9ca768ca682533b41d Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Wed, 22 Nov 2023 19:50:03 +0800 Subject: [PATCH] Close the client postgresql connection after rejection. (#4084) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Manuel Vázquez Acosta --- server/util-server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/util-server.js b/server/util-server.js index b9832af31..ec0cb7684 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -458,6 +458,7 @@ exports.postgresQuery = function (connectionString, query) { }); } catch (e) { reject(e); + client.end(); } } });