From 2a886d5a1f4c6d9119c9a50a82fb542173382be2 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 19 Mar 2024 03:33:25 -0700 Subject: [PATCH] fix duckdb connection leak (#1103) --- src/client/stdlib/duckdb.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/stdlib/duckdb.js b/src/client/stdlib/duckdb.js index 2ab8c8667..454f5d1ab 100644 --- a/src/client/stdlib/duckdb.js +++ b/src/client/stdlib/duckdb.js @@ -115,9 +115,8 @@ export class DuckDBClient { } else { table = await connection.query(query); } - } catch (error) { + } finally { await connection.close(); - throw error; } return table; }