Skip to content

Commit

Permalink
fix duckdb connection leak (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 19, 2024
1 parent 7c69b22 commit 2a886d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/stdlib/duckdb.js
Expand Up @@ -115,9 +115,8 @@ export class DuckDBClient {
} else {
table = await connection.query(query);
}
} catch (error) {
} finally {
await connection.close();
throw error;
}
return table;
}
Expand Down

0 comments on commit 2a886d5

Please sign in to comment.