Skip to content

Commit 2a886d5

Browse files
authored
fix duckdb connection leak (#1103)
1 parent 7c69b22 commit 2a886d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client/stdlib/duckdb.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ export class DuckDBClient {
115115
} else {
116116
table = await connection.query(query);
117117
}
118-
} catch (error) {
118+
} finally {
119119
await connection.close();
120-
throw error;
121120
}
122121
return table;
123122
}

0 commit comments

Comments
 (0)