summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/sqlite.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2024-12-20 22:37:19 +0100
committerLibravatar GitHub <noreply@github.com>2024-12-20 21:37:19 +0000
commit9ae0c7b3636365406b480b494dccc609ccba08b9 (patch)
treeb6a205df8ff83acaff1745ff88885d9346ffef04 /vendor/github.com/ncruces/go-sqlite3/sqlite.go
parent[bugfix] Load instance-wide custom css in page stylesheets template (#3601) (diff)
downloadgotosocial-9ae0c7b3636365406b480b494dccc609ccba08b9.tar.xz
[chore] Update ncruces/go-sqlite3 to 0.21.3 (#3629)
This includes some additional locking fixes for the BSDs.
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/sqlite.go')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/sqlite.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/sqlite.go b/vendor/github.com/ncruces/go-sqlite3/sqlite.go
index 2afe9971c..18a2c2a73 100644
--- a/vendor/github.com/ncruces/go-sqlite3/sqlite.go
+++ b/vendor/github.com/ncruces/go-sqlite3/sqlite.go
@@ -265,10 +265,11 @@ func (a *arena) mark() (reset func()) {
ptrs := len(a.ptrs)
next := a.next
return func() {
- for _, ptr := range a.ptrs[ptrs:] {
+ rest := a.ptrs[ptrs:]
+ for _, ptr := range a.ptrs[:ptrs] {
a.sqlt.free(ptr)
}
- a.ptrs = a.ptrs[:ptrs]
+ a.ptrs = rest
a.next = next
}
}