[PATCH] Explicitly close connection to SQLite on failed upgrade
Export this patch
---
db_sqlite.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/db_sqlite.go b/db_sqlite.go
index 58ea072..6413acc 100644
--- a/db_sqlite.go
+++ b/db_sqlite.go
@@ -150,6 +150,7 @@ func OpenSqliteDB(driver, source string) (Database, error) {
db := &SqliteDB{db: sqlSqliteDB}
if err := db.upgrade(); err != nil {
+ sqlSqliteDB.Close()
return nil, err
}
--
2.33.0
Pushed, thanks!