Skip to content

CAT 029

unurgunite edited this page Jul 11, 2026 · 3 revisions

CAT-029 — DB.open resource leak

Field Value
Severity error
Confidence high
Auto-fix

DB.open resource leak — Database connections opened with DB.open must be closed. Use the block form for automatic cleanup.

Bad code

db = DB.open("sqlite3:./data.db")
rows = db.query_all("SELECT * FROM users")

Clone this wiki locally