More BCE.

This commit is contained in:
Nuno Cruces
2024-12-19 14:00:46 +00:00
parent 58b66b75f1
commit 66601dd3cb
5 changed files with 16 additions and 7 deletions

View File

@@ -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
}
}