Close rows if not nil
This commit is contained in:
@@ -175,7 +175,9 @@ func (c *SQLiteConn) Query(query string, args []driver.Value) (driver.Rows, erro
|
|||||||
if s.t == "" {
|
if s.t == "" {
|
||||||
return rows, nil
|
return rows, nil
|
||||||
}
|
}
|
||||||
rows.Close()
|
if rows != nil {
|
||||||
|
rows.Close()
|
||||||
|
}
|
||||||
s.Close()
|
s.Close()
|
||||||
query = s.t
|
query = s.t
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user