diff --git a/sqlite3.go b/sqlite3.go index 257d64f..abfc2fe 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -210,6 +210,7 @@ func (c *SQLiteConn) Query(query string, args []driver.Value) (driver.Rows, erro if tail == "" { return rows, nil } + rows.Close() s.Close() query = tail }